Rename defmt-1 feature to defmt.

This commit is contained in:
Markus Reiter 2025-04-05 23:44:42 +02:00
parent 12086b194b
commit 6067119ed3
No known key found for this signature in database
4 changed files with 13 additions and 7 deletions

View File

@ -165,7 +165,7 @@ jobs:
run: |
cargo check --target=${{ matrix.target }}
cargo check --target=${{ matrix.target }} --features="portable-atomic-critical-section"
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large"
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt mpmc_large"
doc:
name: doc
@ -208,7 +208,7 @@ jobs:
- name: cargo rustdoc
env: {"RUSTDOCFLAGS": "-D warnings --cfg docsrs"}
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large portable-atomic-critical-section"
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt mpmc_large portable-atomic-critical-section"
# Run cpass tests
testcpass:

View File

@ -45,7 +45,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- Updated defmt from 0.3 to 1.0.1
- Changed the feature name from `defmt-03` to `defmt-1`.
- Changed the feature name from `defmt-03` to `defmt`.
- Changed the error type of these methods from `()` to `CapacityError`.
- `String::push_str`
- `String::push`

View File

@ -33,8 +33,8 @@ serde = ["dep:serde"]
# implement ufmt traits.
ufmt = ["dep:ufmt-write"]
# Implement defmt::Format from defmt v1
defmt-1 = ["dep:defmt"]
# Implement `defmt::Format`.
defmt = ["dep:defmt"]
# Enable larger MPMC sizes.
mpmc_large = []
@ -57,7 +57,13 @@ ufmt = "0.2"
static_assertions = "1.1.0"
[package.metadata.docs.rs]
features = ["ufmt", "serde", "defmt-1", "mpmc_large", "portable-atomic-critical-section"]
features = [
"ufmt",
"serde",
"defmt",
"mpmc_large",
"portable-atomic-critical-section",
]
# for the pool module
targets = ["i686-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "docsrs"]

View File

@ -192,7 +192,7 @@ mod de;
mod ser;
pub mod binary_heap;
#[cfg(feature = "defmt-1")]
#[cfg(feature = "defmt")]
mod defmt;
#[cfg(any(
// assume we have all atomics available if we're using portable-atomic