mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00

also enable it on all dependencies (where available). this is needed because in a next commit we'll add code to `embassy-hal-internal` which uses the feature in a macro, as it expects `defmt` to be optional in all embassy HALs. this was the only HAL where that wasn't the case. note that this is a breaking change for consumers! if you wish to use `defmt` in `embassy-nxp` you now need to enable the feature.
21 lines
648 B
TOML
21 lines
648 B
TOML
[package]
|
|
name = "embassy-nxp"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7.7"
|
|
cortex-m-rt = "0.7.0"
|
|
critical-section = "1.1.2"
|
|
embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] }
|
|
embassy-sync = { version = "0.6.2", path = "../embassy-sync" }
|
|
lpc55-pac = "0.5.0"
|
|
defmt = { version = "0.3.8", optional = true }
|
|
|
|
[features]
|
|
default = ["rt"]
|
|
rt = ["lpc55-pac/rt"]
|
|
|
|
## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers.
|
|
defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"]
|