Installation Guide
Prerequisites
- Rust and Cargo (stable or nightly)
- Optional: Ledger hardware device (for ledger features)
- Optional: AWS account (for AWS KMS features)
Installation
Add NeoRust to your Cargo.toml
:
[dependencies]
neo3 = "0.1.9"
Note: The crate is published as neo3
but is imported as neo
in code:
#![allow(unused)] fn main() { use neo::prelude::*; }
Features
NeoRust provides several features to customize functionality:
futures
: Enables async/futures support (recommended)ledger
: Enables hardware wallet support via Ledger devicesaws
: Enables AWS KMS integration
Example of enabling specific features:
[dependencies]
neo3 = { version = "0.1.9", features = ["futures", "ledger"] }
You can disable default features with:
[dependencies]
neo3 = { version = "0.1.9", default-features = false, features = ["futures"] }
Verifying Installation
To verify that the SDK is installed correctly, create a simple test program:
use neo::prelude::*; fn main() { println!("NeoRust SDK installed successfully!"); }
Compile and run the program:
cargo run
If the program compiles and runs without errors, the SDK is installed correctly.