5 releases

0.7.4 Jun 15, 2018
0.7.2 Jan 8, 2018
0.7.1 Nov 17, 2017
0.7.0 Oct 26, 2017
0.6.1 Sep 13, 2017

#1 in Database implementations

Download history 589/week @ 2018-10-11 541/week @ 2018-10-18 536/week @ 2018-10-25 944/week @ 2018-11-01 590/week @ 2018-11-08 1029/week @ 2018-11-15 269/week @ 2018-11-22 332/week @ 2018-11-29 222/week @ 2018-12-06 285/week @ 2018-12-13 210/week @ 2018-12-20 85/week @ 2018-12-27 32/week @ 2019-01-03

998 downloads per month
Used in 7 crates (1 directly)

Apache-2.0

170KB
3K SLoC

exonum_rocksdb

Build Status Build status crates.io

Documentation

Feedback and pull requests welcome! If a particular feature of RocksDB is important to you, please let me know by opening an issue, and I'll prioritize it.

[dependencies]
exonum_rocksdb = "0.7"

lib.rs:

Rust wrapper for RocksDB.

Examples

 extern crate tempdir;
 extern crate exonum_rocksdb;

 use exonum_rocksdb::DB;
 use tempdir::TempDir;
 // NB: db is automatically closed at end of lifetime
 # fn main() {
 let temp_dir = TempDir::new("storage").unwrap();
 let db = DB::open_default(temp_dir.path()).unwrap();
 let _ = db.put(b"my key", b"my value");
 match db.get(b"my key") {
    Ok(Some(value)) => println!("retrieved value {}", &value.to_utf8().unwrap()),
    Ok(None) => println!("value not found"),
    Err(e) => println!("operational problem encountered: {}", e),
 }
 db.delete(b"my key").unwrap();
 # }

Dependencies

~1.5MB
~16K SLoC