Getting Started with Rust
Requirements
- Rust (latest)
- Cargo (latest)
- For running examples: a local network node with the IOTA Audit Trails package deployed as described here
Include the Library
To include IOTA Audit Trails in your project, add it as a dependency in your Cargo.toml:
[dependencies]
audit_trails = { git = "https://github.com/iotaledger/notarization", tag = "trails-v0.1"}
Examples
To try out the Audit Trails examples, you should:
- Clone the repository:
git clone https://github.com/iotaledger/notarization
- Build the repository:
cargo build
- Run your first example:
cargo run --example 01_create_audit_trail
API Reference
You can find the API reference for the Rust library here.
If you would like to build the documentation locally, you can do so with the following command:
RUSTDOCFLAGS='--cfg docsrs' cargo +nightly doc -p audit_trails --all-features --no-deps --open