leveldb-orm
An ORM wrapper for Rust leveldb KV APIs. Use bincode to encoder / decoder key and object.
Rust version policy
Base on rust leveldb:
leveldb is built and tested on stable releases of Rust. This are currently 1.31.0 and 1.43.1. Nightlies
might not build at any point and failures are allowed. There are no known issues with nightlies, though.
Prerequisites
snappy and leveldb need to be installed. On Ubuntu, I recommend:
Usage
The struct should impl Serialize and Deserialize, so we need serde
Derive by macros
[]
= "0.8"
= { = "0.1", = ["macros"]}
= { = "1.0", = ["derive"] }
Then, on your main.rs:
Example
use Database;
use Options;
use ;
use ;
Without macros feature
Only have to impl KeyOrm trait manually.
Test
- cargo test
- cargo test --features "macros"