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 472/week @ 2018-11-14 231/week @ 2018-11-21 318/week @ 2018-11-28 239/week @ 2018-12-05 262/week @ 2018-12-12 131/week @ 2018-12-19 35/week @ 2018-12-26 133/week @ 2019-01-02 160/week @ 2019-01-09 223/week @ 2019-01-16 223/week @ 2019-01-23 164/week @ 2019-01-30 98/week @ 2019-02-06 122/week @ 2019-02-13 126/week @ 2019-02-20

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

~1MB
~16K SLoC