Skip to content
🎉 Welcome to the new Aptos Docs! Click here to submit feedback!
Rust SDK

Rust SDK


Aptos provides an official lightly supported Rust SDK in the Aptos-core GitHub repository. To use the Rust SDK, add the following dependency and patches on the git repo directly in your Cargo.toml, like this:

aptos-sdk = { git = "", branch = "devnet" }
merlin = { git = "" }
x25519-dalek = { git = "", branch = "zeroize_v1" }

You must also create a .cargo/config.toml file with this content:

rustflags = ["--cfg", "tokio_unstable"]

The source code for the official Rust SDK is available in the aptos-core GitHub repository.

Using Rust SDK

See the Developer Tutorials for code examples showing how to use the Rust SDK.