in3-rs
Rust bindings for the Incubed C library.
The Incubed client is a
- Crypto-Economic
- Non-syncronizing and stateless, but fully verifying
- Minimal resource consuming
blockchain client (Crypto-Economic Client, Minimal Verification Client, Ultra Light Client).
[]
= "0.0.2"
Links:
Requirements
- Rust compiler version >= 1.42.0 ->
rustc --version
- A toolchain capable of compiling IN3 C sources
- Ubuntu:
apt-get install build-essential
- Windows:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Ubuntu:
- OpenSSL dev libs
- Ubuntu:
apt-get install libssl-dev
- Windows: TODO
- Ubuntu:
- CMake version >= 3.5.1, because we build the bundled IN3 C library with the
cmake
crate- Ubuntu:
apt-get install cmake
- Windows:
https://cmake.org/install/
, Make sure you add it to path for windows
- Ubuntu:
- bindgen and therefore clang dev libraries
- Ubuntu:
apt-get install clang libclang-dev llvm-dev
- Windows: TODO
- Ubuntu:
in3-rs uses the
in3-sys
to provide low-level bindings to the IN3 C library.
Features
blocking
- Enables the blocking API which depends on async-std.
Example
Cargo.toml
[]
= "1.5.0"
= "0.2.0"
main.rs
use TryInto;
use task;
use *;
use *;
Contributing
Instructions for running the tests
- To run the tests you need to first run the build script.
./scripts/build_rust.sh
. - Navigate to the rust binding folder.
cd rust
- Then run the test using cargo and an additional option
RUST_TEST_THREADS=1
. This can be done viaRUST_TEST_THREADS=1 cargo test
.