mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +00:00
defmt: 0.3 -> 1
This commit is contained in:
parent
4b78bc1bb9
commit
12086b194b
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -165,7 +165,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cargo check --target=${{ matrix.target }}
|
cargo check --target=${{ matrix.target }}
|
||||||
cargo check --target=${{ matrix.target }} --features="portable-atomic-critical-section"
|
cargo check --target=${{ matrix.target }} --features="portable-atomic-critical-section"
|
||||||
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt-03 mpmc_large"
|
cargo check --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large"
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
name: doc
|
name: doc
|
||||||
@ -208,7 +208,7 @@ jobs:
|
|||||||
|
|
||||||
- name: cargo rustdoc
|
- name: cargo rustdoc
|
||||||
env: {"RUSTDOCFLAGS": "-D warnings --cfg docsrs"}
|
env: {"RUSTDOCFLAGS": "-D warnings --cfg docsrs"}
|
||||||
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt-03 mpmc_large portable-atomic-critical-section"
|
run: cargo rustdoc --target=${{ matrix.target }} --features="ufmt serde defmt-1 mpmc_large portable-atomic-critical-section"
|
||||||
|
|
||||||
# Run cpass tests
|
# Run cpass tests
|
||||||
testcpass:
|
testcpass:
|
||||||
|
@ -44,6 +44,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Updated defmt from 0.3 to 1.0.1
|
||||||
|
- Changed the feature name from `defmt-03` to `defmt-1`.
|
||||||
- Changed the error type of these methods from `()` to `CapacityError`.
|
- Changed the error type of these methods from `()` to `CapacityError`.
|
||||||
- `String::push_str`
|
- `String::push_str`
|
||||||
- `String::push`
|
- `String::push`
|
||||||
|
@ -33,8 +33,8 @@ serde = ["dep:serde"]
|
|||||||
# implement ufmt traits.
|
# implement ufmt traits.
|
||||||
ufmt = ["dep:ufmt-write"]
|
ufmt = ["dep:ufmt-write"]
|
||||||
|
|
||||||
# Implement defmt::Format from defmt v0.3
|
# Implement defmt::Format from defmt v1
|
||||||
defmt-03 = ["dep:defmt"]
|
defmt-1 = ["dep:defmt"]
|
||||||
|
|
||||||
# Enable larger MPMC sizes.
|
# Enable larger MPMC sizes.
|
||||||
mpmc_large = []
|
mpmc_large = []
|
||||||
@ -46,7 +46,7 @@ portable-atomic = { version = "1.0", optional = true }
|
|||||||
hash32 = "0.3.0"
|
hash32 = "0.3.0"
|
||||||
serde = { version = "1", optional = true, default-features = false }
|
serde = { version = "1", optional = true, default-features = false }
|
||||||
ufmt-write = { version = "0.1", optional = true }
|
ufmt-write = { version = "0.1", optional = true }
|
||||||
defmt = { version = ">=0.2.0,<0.4", optional = true }
|
defmt = { version = "1.0.1", optional = true }
|
||||||
|
|
||||||
# for the pool module
|
# for the pool module
|
||||||
[target.'cfg(any(target_arch = "arm", target_pointer_width = "32", target_pointer_width = "64"))'.dependencies]
|
[target.'cfg(any(target_arch = "arm", target_pointer_width = "32", target_pointer_width = "64"))'.dependencies]
|
||||||
@ -57,7 +57,7 @@ ufmt = "0.2"
|
|||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["ufmt", "serde", "defmt-03", "mpmc_large", "portable-atomic-critical-section"]
|
features = ["ufmt", "serde", "defmt-1", "mpmc_large", "portable-atomic-critical-section"]
|
||||||
# for the pool module
|
# for the pool module
|
||||||
targets = ["i686-unknown-linux-gnu"]
|
targets = ["i686-unknown-linux-gnu"]
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
@ -192,7 +192,7 @@ mod de;
|
|||||||
mod ser;
|
mod ser;
|
||||||
|
|
||||||
pub mod binary_heap;
|
pub mod binary_heap;
|
||||||
#[cfg(feature = "defmt-03")]
|
#[cfg(feature = "defmt-1")]
|
||||||
mod defmt;
|
mod defmt;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
// assume we have all atomics available if we're using portable-atomic
|
// assume we have all atomics available if we're using portable-atomic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user