44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
---
|
|
title: "Install the Nym Rust SDK"
|
|
description: "Add nym-sdk to your Rust project from Git or crates.io. Covers version requirements, minimum Rust version, and current feature gate status."
|
|
schemaType: "TechArticle"
|
|
section: "Developers"
|
|
lastUpdated: "2026-04-17"
|
|
---
|
|
|
|
# Installation
|
|
|
|
import { Callout } from 'nextra/components';
|
|
import { CratesPaused } from '../../../components/crates-paused'
|
|
import { RUST_MSRV } from '../../../components/versions'
|
|
|
|
<CratesPaused />
|
|
|
|
```toml
|
|
[dependencies]
|
|
nym-sdk = "X.Y.Z"
|
|
blake3 = "=1.7.0" # pin to avoid a transitive dependency conflict — see note below
|
|
```
|
|
|
|
<Callout type="warning">
|
|
**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.
|
|
</Callout>
|
|
|
|
**Minimum Rust version:** {RUST_MSRV}+
|
|
|
|
### From Git
|
|
|
|
You can also import directly from Git if you want unreleased changes:
|
|
|
|
```toml
|
|
# 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" }
|
|
```
|
|
|
|
<Callout type="warning">
|
|
**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.
|
|
</Callout>
|