diff options
| author | Ralph Ursprung <[email protected]> | 2025-05-15 18:36:51 +0200 |
|---|---|---|
| committer | Ralph Ursprung <[email protected]> | 2025-05-15 18:38:04 +0200 |
| commit | 05bfbacee55207f8065b6e9bbbc0d5454e77668f (patch) | |
| tree | 4454e1ab6848b365fbe21840dff02ba18f35e711 /embassy-nxp | |
| parent | d1c2ce927ac41a3f81de0f47e0468523d562d1d1 (diff) | |
`embassy-nxp`: make `defmt` optional
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.
Diffstat (limited to 'embassy-nxp')
| -rw-r--r-- | embassy-nxp/Cargo.toml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/embassy-nxp/Cargo.toml b/embassy-nxp/Cargo.toml index cf36a67ec..031cd4aba 100644 --- a/embassy-nxp/Cargo.toml +++ b/embassy-nxp/Cargo.toml | |||
| @@ -10,8 +10,11 @@ critical-section = "1.1.2" | |||
| 10 | embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] } | 10 | embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] } |
| 11 | embassy-sync = { version = "0.6.2", path = "../embassy-sync" } | 11 | embassy-sync = { version = "0.6.2", path = "../embassy-sync" } |
| 12 | lpc55-pac = "0.5.0" | 12 | lpc55-pac = "0.5.0" |
| 13 | defmt = "0.3.8" | 13 | defmt = { version = "0.3.8", optional = true } |
| 14 | 14 | ||
| 15 | [features] | 15 | [features] |
| 16 | default = ["rt"] | 16 | default = ["rt"] |
| 17 | rt = ["lpc55-pac/rt"] \ No newline at end of file | 17 | rt = ["lpc55-pac/rt"] |
| 18 | |||
| 19 | ## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. | ||
| 20 | defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"] | ||
