A Rust crate for utilising a Go library for Decentralised Identity management through FFI.
Install Rust - official instructions - i.e.:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
For Linux distros you may need to install the following:
sudo apt install clang
Build instructions are defined in the build.rs
file and can be called with cargo build
.
# Cargo.toml
[dependencies]
iotics-identity = { git = "ssh://[email protected]/Iotic-Labs/iotics-identity-go.git" }
cargo run --example create_user_and_agent
cargo run --example create_auth_token
cargo run --example create_twin_did