# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.65"
name = "stm32h5-staging"
version = "0.18.1"
authors = [
    "Adam Greig <adam@adamgreig.com>",
    "stm32-rs Contributors",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Device support crates for STM32H5 devices"
readme = "README.md"
keywords = [
    "stm32",
    "svd2rust",
    "no_std",
    "embedded",
]
categories = [
    "embedded",
    "no-std",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/stm32-rs/stm32-rs"

[package.metadata.docs.rs]
default-target = "thumbv8m.main-none-eabihf"
features = [
    "atomics",
    "critical-section",
    "defmt",
    "rt",
    "stm32h503",
    "stm32h533",
    "stm32h562",
    "stm32h573",
]
targets = []

[lib]
name = "stm32h5_staging"
path = "src/lib.rs"

[dependencies.cortex-m]
version = "0.7.7"

[dependencies.cortex-m-rt]
version = "0.7.3"
optional = true

[dependencies.critical-section]
version = "1.0"
optional = true

[dependencies.defmt]
version = "0.3.5"
optional = true

[dependencies.portable-atomic]
version = "1"
optional = true
default-features = false

[dependencies.vcell]
version = "0.1.3"

[features]
atomics = ["dep:portable-atomic"]
default = [
    "critical-section",
    "rt",
]
rt = ["cortex-m-rt/device"]
stm32h503 = []
stm32h523 = []
stm32h533 = []
stm32h562 = []
stm32h563 = []
stm32h573 = []
