Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.