Skip to content

Commit 6067119

Browse files
committed
Rename defmt-1 feature to defmt.
1 parent 12086b1 commit 6067119

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
run: |
166166
cargo check --target=${{ matrix.target }}
167167
cargo check --target=${{ matrix.target }} --features="portable-atomic-critical-section"
168-
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large"
168+
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt mpmc_large"
169169
170170
doc:
171171
name: doc
@@ -208,7 +208,7 @@ jobs:
208208

209209
- name: cargo rustdoc
210210
env: {"RUSTDOCFLAGS": "-D warnings --cfg docsrs"}
211-
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large portable-atomic-critical-section"
211+
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt mpmc_large portable-atomic-critical-section"
212212

213213
# Run cpass tests
214214
testcpass:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4545
### Changed
4646

4747
- Updated defmt from 0.3 to 1.0.1
48-
- Changed the feature name from `defmt-03` to `defmt-1`.
48+
- Changed the feature name from `defmt-03` to `defmt`.
4949
- Changed the error type of these methods from `()` to `CapacityError`.
5050
- `String::push_str`
5151
- `String::push`

Cargo.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ serde = ["dep:serde"]
3333
# implement ufmt traits.
3434
ufmt = ["dep:ufmt-write"]
3535

36-
# Implement defmt::Format from defmt v1
37-
defmt-1 = ["dep:defmt"]
36+
# Implement `defmt::Format`.
37+
defmt = ["dep:defmt"]
3838

3939
# Enable larger MPMC sizes.
4040
mpmc_large = []
@@ -57,7 +57,13 @@ ufmt = "0.2"
5757
static_assertions = "1.1.0"
5858

5959
[package.metadata.docs.rs]
60-
features = ["ufmt", "serde", "defmt-1", "mpmc_large", "portable-atomic-critical-section"]
60+
features = [
61+
"ufmt",
62+
"serde",
63+
"defmt",
64+
"mpmc_large",
65+
"portable-atomic-critical-section",
66+
]
6167
# for the pool module
6268
targets = ["i686-unknown-linux-gnu"]
6369
rustdoc-args = ["--cfg", "docsrs"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ mod de;
192192
mod ser;
193193

194194
pub mod binary_heap;
195-
#[cfg(feature = "defmt-1")]
195+
#[cfg(feature = "defmt")]
196196
mod defmt;
197197
#[cfg(any(
198198
// assume we have all atomics available if we're using portable-atomic

0 commit comments

Comments
 (0)