#binding #no-sql #key-value-store

nightly hyperdex

Rust binding for HyperDex, the next-generation distributed key-value store

4 releases (2 stable)

Uses old Rust 2015

1.1.0 Jun 7, 2015
1.0.0 May 15, 2015
0.0.2 Dec 18, 2014
0.0.1 Dec 18, 2014

#2819 in Database interfaces

BSD-2-Clause

195KB
4K SLoC

rust-hyperdex

Rust binding for HyperDex.

Prerequisites

This binding makes use of several experimental features including macros, which are only available on Rust Beta and Rust Nightly. Refer to here for installing Rust.

To compile the binding, you need to install the HyperDex development files. Assuming you are using Ubuntu and you have added HyperDex's PPA by following these instructions, you may simply install the following packages:

sudo apt-get install libhyperdex-dev libhyperdex-client-dev libhyperdex-admin-dev

Installation

Using Cargo, the Rust package manager, it's as easy as adding the following lines to your Cargo.toml file:

[dependencies]
hyperdex = "*"

Documentation

http://derekchiang.github.io/rust-hyperdex/

Examples

The tests are worth a look.

Testing

Most of the tests are included in the HyperDex repo itself. The repo also includes a few test cases.

Before you run the tests, you need to start the HyperDex coordinator at 127.0.0.1:1982 and also start a daemon.

Then, set the following environment variable to make the tests run in series:

export RUST_TEST_THREADS=1

Now you may run the tests:

cargo test --lib

Dependencies

~325KB