# 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" name = "bind-hal" version = "0.3.3" authors = ["decaday "] build = "build.rs" exclude = ["src/main.rs"] autobins = false autoexamples = false autotests = false autobenches = false description = "MCU HALs using binding, currently supports PY32" homepage = "https://github.com/decaday/bind-hal" readme = "README.md" keywords = [ "embedded-hal", "no-std", "py32", "mcu", ] categories = ["no-std"] license-file = "LICENSE" repository = "https://github.com/decaday/bind-hal" [package.metadata.docs.rs] default-target = "thumbv6m-none-eabi" [profile.dev] opt-level = "z" codegen-units = 1 debug = 2 debug-assertions = true overflow-checks = true incremental = false [profile.release] opt-level = 3 lto = "fat" codegen-units = 1 debug = 2 debug-assertions = false overflow-checks = false incremental = false [lib] name = "bind_hal" path = "src/lib.rs" harness = false [dependencies.cortex-m] version = "0.7" features = ["critical-section-single-core"] [dependencies.cortex-m-rt] version = "0.7" [dependencies.cortex-m-semihosting] version = "0.5" [dependencies.critical-section] version = "1.1" [dependencies.defmt] version = "0.3" optional = true [dependencies.defmt-rtt] version = "0.4" [dependencies.embassy-executor] version = "0.6" features = [ "nightly", "integrated-timers", "arch-cortex-m", "executor-thread", ] [dependencies.embassy-futures] version = "0.1.1" optional = true [dependencies.embassy-sync] version = "0.6.0" optional = true [dependencies.embassy-time] version = "0.3.0" features = ["tick-hz-1_000"] optional = true [dependencies.embassy-time-driver] version = "0.1.0" features = ["tick-hz-1_000"] optional = true [dependencies.embedded-hal] version = "1.0.0-alpha.11" [dependencies.embedded-hal-async] version = "1.0" [dependencies.futures-util] version = "0.3.30" default-features = false [dependencies.panic-probe] version = "0.3" features = ["print-defmt"] [dependencies.py32csdk-hal-sys] version = "0.4.0" [features] auto_memory_x = [] csdk-hal = [] default = [ "py32f030", "ram_rom_py32xxx6", "embassy", "time", "defmt", "auto_memory_x", ] defmt = [ "dep:defmt", "embassy-sync/defmt", "embassy-time?/defmt", ] embassy = [ "dep:embassy-sync", "dep:embassy-futures", "dep:embassy-time-driver", ] peri-dma = [] peri-gpioa = [] peri-gpiob = [] peri-gpiof = [] peri-i2c = [] peri-i2c0 = [] peri-i2c1 = [] peri-i2c2 = [] py32f030 = [ "py32csdk-hal-sys/py32f030", "csdk-hal", "peri-gpioa", "peri-gpiob", "peri-gpiof", "peri-i2c", "peri-i2c0", "peri-dma", ] ram_rom_py32f002ax5 = [] ram_rom_py32xxx6 = ["py32csdk-hal-sys/py32xxx6"] ram_rom_py32xxx8 = ["py32csdk-hal-sys/py32xxx8"] recompile = ["py32csdk-hal-sys/recompile"] time = ["dep:embassy-time"]