Installation
⚠️
Crate publication is paused. The crates.io release (v1.20.4) doesn't include the Stream module or other recent work. Publication resumes with the Lewes Protocol. Import from Git for now — see Installation.
[dependencies]
nym-sdk = { git = "https://github.com/nymtech/nym", rev = "97068b2" }
blake3 = "=1.7.0" # pin to avoid a transitive dependency conflict — see note below⚠️
Temporary pin required. You must pin blake3 = "=1.7.0" in your Cargo.toml to avoid a build failure caused by a transitive digest version conflict. This will be resolved in a future SDK release.
You can also track a branch if you want the latest changes:
# development branch (latest changes, may be unstable)
nym-sdk = { git = "https://github.com/nymtech/nym", branch = "develop" }
# latest stable release
nym-sdk = { git = "https://github.com/nymtech/nym", branch = "master" }Minimum Rust version: 1.70+
crates.io (older API only)
If you don't need the Stream module or other recent additions, you can still use the published crate:
[dependencies]
nym-sdk = "1.20.4"This version includes the Mixnet message API, Client Pool, and TcpProxy modules.
⚠️
No feature gates yet. Importing nym-sdk pulls in everything (mixnet, tcp_proxy, client_pool, etc.) and their full dependency trees. Cargo feature flags are planned.