Skip to content

Commit 877db42

Browse files
authored
Merge pull request #546 from newAM/defmt-1
defmt: 0.3 -> 1
2 parents 0c6728c + 6067119 commit 877db42

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-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-03 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-03 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4545

4646
### Changed
4747

48+
- Updated defmt from 0.3 to 1.0.1
49+
- Changed the feature name from `defmt-03` to `defmt`.
4850
- Changed the error type of these methods from `()` to `CapacityError`.
4951
- `String::push_str`
5052
- `String::push`

Cargo.toml

Lines changed: 10 additions & 4 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 v0.3
37-
defmt-03 = ["dep:defmt"]
36+
# Implement `defmt::Format`.
37+
defmt = ["dep:defmt"]
3838

3939
# Enable larger MPMC sizes.
4040
mpmc_large = []
@@ -46,7 +46,7 @@ portable-atomic = { version = "1.0", optional = true }
4646
hash32 = "0.3.0"
4747
serde = { version = "1", optional = true, default-features = false }
4848
ufmt-write = { version = "0.1", optional = true }
49-
defmt = { version = ">=0.2.0,<0.4", optional = true }
49+
defmt = { version = "1.0.1", optional = true }
5050

5151
# for the pool module
5252
[target.'cfg(any(target_arch = "arm", target_pointer_width = "32", target_pointer_width = "64"))'.dependencies]
@@ -57,7 +57,13 @@ ufmt = "0.2"
5757
static_assertions = "1.1.0"
5858

5959
[package.metadata.docs.rs]
60-
features = ["ufmt", "serde", "defmt-03", "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-03")]
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)