5 unstable releases

0.3.0 Feb 10, 2025
0.2.2 Jan 25, 2025
0.2.1 May 19, 2024
0.2.0 Apr 23, 2024
0.1.0 Mar 31, 2024

#1050 in Database interfaces

Download history 1/week @ 2024-11-20 3/week @ 2024-12-04 21/week @ 2024-12-11 108/week @ 2025-01-22 13/week @ 2025-01-29 110/week @ 2025-02-05 84/week @ 2025-02-12 6/week @ 2025-02-19 11/week @ 2025-02-26 7/week @ 2025-03-05

155 downloads per month

MPL-2.0 license

30KB
783 lines

redb-bincode

This crate is a wrapper around redb that makes keys and values require T: bincode::Encode + bincode::Decode and serialize as a big-endian bincode, which makes working with redb much more convenient.

It does also include a couple of minor deviations from redb, but stays faithful to the original API.

It was born from personal need, and at the time of writing this, contains only things that I actually needed. Having said that adding missing bits should be as simple as copy-paste-modify existing code, and contributions are welcome. Just be aware that you might need to get your hands dirty if you're planning to use it.

Notably bincode pre-release version is used.

The approach used in this crate might be a bit heavy, but should work for any serialization format, serde-based or not.

Dependencies

~1.2–1.7MB
~40K SLoC