no-std embedded-storage

A Storage Abstraction Layer for Embedded Systems

4 releases (2 breaking)

0.3.1 Dec 4, 2023
0.3.0 Feb 7, 2022
0.2.0 Sep 15, 2021
0.1.0 May 18, 2021

#39 in Embedded development

Download history 15908/week @ 2023-11-11 13475/week @ 2023-11-18 14513/week @ 2023-11-25 14699/week @ 2023-12-02 15382/week @ 2023-12-09 13346/week @ 2023-12-16 10015/week @ 2023-12-23 11900/week @ 2023-12-30 13152/week @ 2024-01-06 11563/week @ 2024-01-13 12084/week @ 2024-01-20 11991/week @ 2024-01-27 10701/week @ 2024-02-03 11873/week @ 2024-02-10 11303/week @ 2024-02-17 10337/week @ 2024-02-24

45,837 downloads per month
Used in 91 crates (26 directly)

MIT/Apache

19KB
317 lines

embedded-storage

An Embedded Storage Abstraction Layer

This crate defines a set of traits that can be implemented to provide non-volatile storage of different kinds, including but not limited to EEPROM, NOR-flash & NAND-flash, both external and internal.

API reference

How-to: add a new trait

This is the suggested approach to adding a new trait to embedded-storage

Research / Discussion

Ideally, before proposing a new trait, or set of traits, you should check for an existing issue suggesting the need for the trait, as well as any related works / use cases / requirements that are useful to consider in the design of the trait.

These issues will be labeled as discussion in the issue tracker.

Implementation / Demonstration

Proposed traits should then be implemented and demonstrated, either by forking embedded-storage or by creating a new crate with the intent of integrating this into embedded-storage once the traits have stabilized. You may find cargo workspaces and patch useful for the forking approach.

Proposing a trait

Once the trait has been demonstrated a PR should be opened to merge the new trait(s) into embedded-storage. This should include a link to the previous discussion issue.

If there is determined to be more than one alternative then there should be further discussion to try to single out the best option. Once there is consensus this will be merged into the embedded-storage repository.

These issues / PRs will be labeled as proposals in the issue tracker.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.50.0 and up. It might compile with older versions but that may change in any new patch release.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps