Files
tmp/Cargo.toml
Lionel Sambuc ba09e87c1e stars, moon, trees, houses and snow
* Version of Family Christmas 2024
2024-12-28 08:27:33 +01:00

86 lines
1.6 KiB
TOML

[package]
authors = ["Lionel Sambuc <lionel.sambuc@gmail.com>"]
name = "template-microbit"
edition = "2021"
version = "0.1.0"
[lib]
harness = false
# needed for each integration test
[[test]]
name = "integration"
harness = false
[dependencies.microbit-v2]
version = "0.15.1"
optional = true
[dependencies.microbit]
version = "0.15.1"
optional = true
[dependencies]
cortex-m = { version = "0.7", features = ["critical-section-single-core", "inline-asm"] }
cortex-m-rt = "0.7"
#cortex-m-semihosting = "0.5.0"
#panic-halt = "0.2.0"
panic-rtt-target = "0.1"
defmt = "0.3"
# Either rtt-target or defmt-rtt
#rtt-target = "0.5"
defmt-rtt = "0.4"
panic-probe = { version = "0.3", features = ["print-defmt"] }
embedded-hal = "1.0.0"
embedded-alloc = "0.6.0"
rand = { version = "0.9.0-beta.1", features = ["small_rng"], default-features = false }
[dev-dependencies]
defmt-test = "0.3"
[features]
default = ["v1"]
v2 = ["microbit-v2"]
v1 = ["microbit"]
# cargo build/run
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 'z' # <-
overflow-checks = true # <-
# cargo test
[profile.test]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 3 # <-
overflow-checks = true # <-
# cargo build/run --release
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-
# cargo test --release
[profile.bench]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-