LevelDB binding for Rust (work-in-progress)
Latest commit 59cbac2 Jun 15, 2012 @donpdonp donpdonp Merge pull request #4 from donpdonp/master
hello world in the README
Failed to load latest commit information.
src Mark libsnappy as a needed dynamic library Jun 15, 2012
test Adapt Rust libraries change Jun 4, 2012
Makefile Add the first test case Jan 15, 2012
README.md Sample Code header Jun 15, 2012


Rust binding for LevelDB http://code.google.com/p/leveldb/

Sample Code

use leveldb;

import leveldb::*;

fn main() {
  alt leveldb::open([create_if_missing], "sample.leveldb") {
    result::ok(db) {
      db.put([], "key", "value");
      let value = db.get([], "key");
      io::println(#fmt("value for key is \"%s\"", result::get(value)));
    result::err(e) {
      io::println(#fmt("open error: %s", e));