Crates.io | redb-bincode |
lib.rs | redb-bincode |
version | |
source | src |
created_at | 2024-03-31 00:03:32.982835+00 |
updated_at | 2025-02-10 21:38:43.258252+00 |
description | `redb` + `bincode` wrapper around `redb` |
homepage | https://github.com/rustshop/redb-bincode |
repository | https://github.com/rustshop/redb-bincode |
max_upload_size | |
id | 1191366 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.