Crates.io | hyperdex |
lib.rs | hyperdex |
version | 1.1.0 |
source | src |
created_at | 2014-12-18 02:28:55.383479 |
updated_at | 2015-12-13 23:54:33.024636 |
description | Rust binding for HyperDex, the next-generation distributed key-value store |
homepage | https://github.com/derekchiang/rust-hyperdex |
repository | https://github.com/derekchiang/rust-hyperdex |
max_upload_size | |
id | 592 |
size | 240,932 |
Rust binding for HyperDex.
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
Using Cargo, the Rust package manager, it's as easy as adding the following lines to your Cargo.toml
file:
[dependencies]
hyperdex = "*"
http://derekchiang.github.io/rust-hyperdex/
The tests are worth a look.
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