First of all, you need to install system dependencies.
The crate uses these system libraries:
Below you can find instructions on how to obtain them for the different operating systems:
If you use homebrew
you can simply install needed libraries with the command:
brew install libsodium leveldb openssl
For deb based systems like Debian or Ubuntu you need the following packages:
apt install build-essential libsodium-dev libleveldb-dev libssl-dev pkg-config
Other linux users may find the packages with similar names in their package managers.
Building and workability is not guaranteed yet.
The project uses a stable Rust version that can be installed by using the rustup utility.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable
Nightly (2017-07-05
) version is used for clippy. You can install it with the following command:
rustup toolchain install nightly-2017-07-05
And run Clippy checks this way:
cargo +nightly-2017-07-05 clippy
You can verify that you installed everything correctly by compiling the exonum
crate and run tests suite with the command:
cargo test --manifest-path exonum/Cargo.toml
You may want to launch the extended tests suite which is named sandbox
.
cargo test --manifest-path sandbox/Cargo.toml
After all this you can learn how to create your own blockchain solution.