[package] authors = ["Joe Ardent "] name = "treatbot-5k" edition = "2024" version = "50.0.0" default-run = "treatbot-5k" # To run all the tests via `cargo test` the tests need to be explicitly disabled for the binary targets # If you use a standard main.rs file the following is sufficient: [[bin]] name = "treatbot-5k" test = false [lib] harness = false # needed for each integration test [[test]] name = "integration" harness = false [dependencies] cortex-m = { version = "0.7", features = ["critical-section-single-core"] } cortex-m-rt = "0.7" defmt = "1.0" defmt-rtt = "1.0" embassy-executor = { version = "0.10.0", features = ["defmt", "platform-cortex-m", "executor-thread"] } embassy-futures = "0.1.2" embassy-stm32 = { version = "0.6.0", features = ["defmt", "stm32g474re", "memory-x", "unstable-pac", "exti", "dual-bank", "stm32-hrtim", "time-driver-any"] } embassy-sync = { version = "0.8.0", features = ["defmt"] } embassy-time = { version = "0.5.1", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } panic-probe = { version = "1.0", features = ["print-defmt"] } semihosting = "0.1.20" # stm32g4xx-hal = { version = "0.1.0", features = ["defmt", "stm32g474", "hrtim"] } [dev-dependencies] defmt-test = "0.3" # cargo build/run [profile.dev] # default is opt-level = '0', but that makes very # verbose machine code opt-level = 's' # trade compile speed for slightly better optimisations codegen-units = 1 # cargo build/run --release [profile.release] # default is opt-level = '3', but that makes quite # verbose machine code opt-level = 's' # trade compile speed for slightly better optimisations codegen-units = 1 # Use Link Time Optimisations to further inline things across # crates lto = 'fat' # Leave the debug symbols in (default is no debug info) debug = 2