Skip to content

Commit

Permalink
Merge pull request #259 from quartiq/box-rc
Browse files Browse the repository at this point in the history
Box-rc
  • Loading branch information
jordens authored Nov 12, 2024
2 parents 9de87e5 + 20aca16 commit 4afee8e
Show file tree
Hide file tree
Showing 6 changed files with 1,205 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/quartiq/miniconf/compare/v0.17.0...HEAD) - DATE

### Added

* `std` and `alloc` features and `Tree*` impls for `Box`, `Rc`, `RcWeak`, `Arc`, `ArcWeak`,
`Cow`, `Mutex`, `RwLock`, `Cell`, `RefCell`, `Bound`, `Range`, `RangeFrom`, `RangeTo`,
`RangeInflusive`

## [0.17.0](https://github.com/quartiq/miniconf/compare/v0.16.3...v0.17.0) - 2024-10-25

### Changed
Expand Down
9 changes: 8 additions & 1 deletion miniconf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ default = ["derive"]
json-core = ["dep:serde-json-core"]
postcard = ["dep:postcard"]
derive = ["dep:miniconf_derive", "serde/derive"]
alloc = []
std = ["alloc"]

[package.metadata.docs.rs]
all-features = true
Expand All @@ -49,7 +51,7 @@ required-features = ["json-core", "derive"]

[[test]]
name = "basic"
required-features = ["derive"]
required-features = ["json-core", "derive"]

[[test]]
name = "generics"
Expand Down Expand Up @@ -87,9 +89,14 @@ required-features = ["json-core", "derive"]
name = "flatten"
required-features = ["json-core", "derive"]

[[test]]
name = "compiletest"
required-features = ["derive"]

[[example]]
name = "common"
crate-type = ["lib"]
required-features = ["derive"]

[[example]]
name = "cli"
Expand Down
2 changes: 1 addition & 1 deletion miniconf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ for path in Settings::nodes::<Path<heapless::String<32>, '/'>, 6>() {
match json::get(&settings, &path, &mut buf) {
// Full round-trip: deserialize and set again
Ok(len) => { json::set(&mut settings, &path, &buf[..len])?; }
// Some leaves are still `None` and thus their paths are expected to be absent
// Some Options are `None`, some enum variants are absent
Err(Error::Traversal(Traversal::Absent(_))) => {}
e => { e.unwrap(); }
}
Expand Down
Loading

0 comments on commit 4afee8e

Please sign in to comment.