https://github.com/rustshop/redb-bincode
`redb` + `bincode` wrapper around `redb` Rust database
https://github.com/rustshop/redb-bincode
Last synced: about 1 year ago
JSON representation
`redb` + `bincode` wrapper around `redb` Rust database
- Host: GitHub
- URL: https://github.com/rustshop/redb-bincode
- Owner: rustshop
- Created: 2024-03-30T23:57:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-26T06:06:37.000Z (about 1 year ago)
- Last Synced: 2025-06-20T23:07:40.118Z (about 1 year ago)
- Language: Rust
- Size: 73.2 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `redb-bincode`
This crate is a wrapper around [`redb`](https://crates.io/crates/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.