30 lines
940 B
TOML
30 lines
940 B
TOML
# The firmware the RTT, defmt and sampler tests run on a twin: a standalone no_std project
|
|
# (its own workspace and lockfile), built once by build.sh and committed as
|
|
# ../rtt_demo.elf so the tests need no embedded toolchain. Rebuild it when this changes.
|
|
[package]
|
|
name = "rtt-demo"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[workspace]
|
|
|
|
[dependencies]
|
|
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
|
|
cortex-m-rt = "0.7.5"
|
|
# The real control block and the real defmt logger: what a board running rtt-target
|
|
# carries is what the twin carries.
|
|
rtt-target = { version = "0.6.2", features = ["defmt"] }
|
|
defmt = "1.0"
|
|
panic-halt = "1.0"
|
|
|
|
[profile.release]
|
|
# DWARF for the sampler: types of the globals it reads by name.
|
|
debug = 2
|
|
opt-level = "s"
|
|
codegen-units = 1
|
|
lto = "fat"
|
|
|
|
[profile.release.package."*"]
|
|
# Dependencies' debug info is not needed and only makes the committed ELF larger.
|
|
debug = false
|