diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cd505e..09cb495 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ ## Unreleased +## 7.1.0 - 19-01-26 + +- Added `postcard` feature, disabled by default. This enables the `PostcardValue` trait. + Implement it on your type, and it will automatically implement the `map::Value` trait by using postcard to serialize and deserialize. + ## 7.0.1 - 09-01-26 - Added checks to avoid trying to write or read zero bytes of data to/from the flash diff --git a/Cargo.toml b/Cargo.toml index 2339652..241b7dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sequential-storage" -version = "7.0.1" +version = "7.1.0" edition = "2024" license = "MIT OR Apache-2.0" description = "A crate for storing data in flash with minimal erase cycles." @@ -29,18 +29,26 @@ futures = { version = "0.3.30", features = ["executor"] } futures-test = "0.3.30" [features] +# Get defmt format implementations on some types like errors defmt = ["dep:defmt"] +# Enable some std-only features like debug printing the items in a storage std = ["alloc"] -# Enable the implementation of the map Key trait for ArrayVec and ArrayString +# Enable convenience implementations for arrayvec arrayvec = ["dep:arrayvec"] +# Enable convenience implementations for alloc alloc = ["defmt?/alloc"] +# Enable convenience implementations for heapless 0.8 heapless = ["dep:heapless"] +# Enable convenience implementations for heapless 0.9 heapless-09 = ["dep:heapless-09"] +# Enable convenience implementations for postcard postcard = ["dep:postcard", "dep:serde"] + +# Internal feature. Do not use. Anything here is semver exempt. _test = ["dep:futures", "dep:approx", "std", "arrayvec", "alloc", "heapless"] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing_repro)'] } [package.metadata.docs.rs] -features = ["arrayvec", "alloc", "heapless", "heapless-09", "postcard"] +features = ["arrayvec", "std", "heapless", "heapless-09", "postcard"] diff --git a/example/Cargo.lock b/example/Cargo.lock index 7446811..46eb5c3 100644 --- a/example/Cargo.lock +++ b/example/Cargo.lock @@ -578,7 +578,7 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "sequential-storage" -version = "7.0.1" +version = "7.1.0" dependencies = [ "defmt", "embedded-storage-async",