# 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 = "2024"
name = "stm32f1-hal"
version = "0.3.0"
authors = ["Jalon Wong <jalonwong@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HAL for the STM32F1 family"
documentation = "https://docs.rs/stm32f1-hal"
readme = "README.md"
keywords = [
    "arm",
    "cortex-m",
    "stm32",
    "hal",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mcu-rust/stm32f1-hal"

[package.metadata.docs.rs]
features = [
    "stm32f103",
    "xG",
]

[features]
connectivity = [
    "medium",
    "has-can",
    "has-dac",
]
critical-section-single-core = [
    "cortex-m/critical-section-single-core",
    "mcu",
]
has-can = []
has-dac = []
high = [
    "medium",
    "has-dac",
]
mcu = [
    "dep:cortex-m",
    "dep:cortex-m-rt",
    "dep:stm32f1",
]
medium = []
rtic = ["dep:rtic-monotonic"]
std = []
stm32f100 = [
    "stm32f1/stm32f100",
    "mcu",
]
stm32f101 = [
    "stm32f1/stm32f101",
    "mcu",
]
stm32f103 = [
    "stm32f1/stm32f103",
    "mcu",
]
stm32f105 = [
    "stm32f1/stm32f107",
    "connectivity",
    "mcu",
]
stm32f107 = [
    "stm32f1/stm32f107",
    "connectivity",
    "mcu",
]
x4 = []
x6 = []
x8 = ["medium"]
xB = ["medium"]
xC = ["high"]
xD = ["high"]
xE = ["high"]
xF = ["xl"]
xG = ["xl"]
xl = ["high"]

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

[dependencies.bitflags]
version = "2"

[dependencies.cfg-if]
version = "1.0"

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

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

[dependencies.critical-section]
version = "1.2"

[dependencies.embedded-dma]
version = "0.2"

[dependencies.embedded-hal]
version = "1.0"

[dependencies.embedded-hal-nb]
version = "1.0"

[dependencies.embedded-io]
version = "0.7"

[dependencies.fugit]
version = "0.3"

[dependencies.fugit-timer]
version = "0.1"

[dependencies.nb]
version = "1.1"

[dependencies.rtic-monotonic]
version = "1.0"
optional = true

[dependencies.rtrb]
version = "0.3"
default-features = false

[dependencies.stm32f1]
version = "0.16"
optional = true

[dependencies.waiter-trait]
version = "0.8"

[build-dependencies.sync-code]
version = "0.1.1"

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
debug = 2
