mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 13:00:26 +00:00
Rename defmt-1
feature to defmt
.
This commit is contained in:
parent
12086b194b
commit
6067119ed3
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -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:
|
||||
|
@ -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`
|
||||
|
12
Cargo.toml
12
Cargo.toml
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user