mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-07-07 04:58:00 +02:00
81 lines
1.6 KiB
TOML
81 lines
1.6 KiB
TOML
[package]
|
|
edition = "2024"
|
|
name = "spi"
|
|
version = "0.1.0"
|
|
license = "MIT or Apache-2.0"
|
|
|
|
[lib]
|
|
name = "spi_lib"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "spi"
|
|
path = "src/main.rs"
|
|
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7"
|
|
cortex-m-rt = "0.7"
|
|
fugit = "0.3"
|
|
defmt = "1"
|
|
defmt-rtt = "1"
|
|
embedded-hal = "1.0"
|
|
|
|
[target.'cfg( target_arch = "arm" )'.dependencies]
|
|
panic-probe = { version = "1", features = ["print-defmt"] }
|
|
|
|
[target.'cfg( target_arch = "riscv32" )'.dependencies]
|
|
panic-halt = { version = "1.0.0" }
|
|
|
|
[target.thumbv6m-none-eabi.dependencies]
|
|
rp2040-boot2 = "0.3"
|
|
rp2040-hal = { version = "0.11", features = ["rt", "critical-section-impl"] }
|
|
|
|
[target.riscv32imac-unknown-none-elf.dependencies]
|
|
rp235x-hal = { version = "0.3", features = ["rt", "critical-section-impl"] }
|
|
|
|
[target."thumbv8m.main-none-eabihf".dependencies]
|
|
rp235x-hal = { version = "0.3", features = ["rt", "critical-section-impl"] }
|
|
|
|
# cargo build/run
|
|
[profile.dev]
|
|
debug = 2
|
|
debug-assertions = true
|
|
opt-level = 2
|
|
overflow-checks = true
|
|
|
|
# cargo build/run --release
|
|
[profile.release]
|
|
debug = 2
|
|
debug-assertions = false
|
|
lto = "fat"
|
|
opt-level = 2
|
|
overflow-checks = false
|
|
|
|
# do not optimize proc-macro crates = faster builds from scratch
|
|
[profile.dev.build-override]
|
|
debug = false
|
|
debug-assertions = false
|
|
overflow-checks = false
|
|
opt-level = 0
|
|
|
|
[profile.release.build-override]
|
|
debug = false
|
|
debug-assertions = false
|
|
overflow-checks = false
|
|
opt-level = 0
|
|
|
|
# cargo test
|
|
[profile.test]
|
|
debug = 2
|
|
debug-assertions = true
|
|
opt-level = 2
|
|
overflow-checks = true
|
|
|
|
# cargo test --release
|
|
[profile.bench]
|
|
debug = 2
|
|
debug-assertions = false
|
|
lto = "fat"
|
|
opt-level = 3
|