> For the complete documentation index, see [llms.txt](https://docs.endless.link/endless/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.endless.link/endless/devbuild/build/endless-sdks/rust-sdk.md).

# Rust SDK

## Endless Rust SDK <a href="#endless-rust-sdk" id="endless-rust-sdk"></a>

## Installing Rust SDK <a href="#installing-rust-sdk" id="installing-rust-sdk"></a>

Endless provides an official Rust SDK in the [Endless GitHub](https://github.com/endless-labs/endless-rust-sdk) repository. To use the Rust SDK, add the following dependency and patches on the git repo directly in your `Cargo.toml`, like this:

```
[dependencies]
endless-sdk = { git = "https://github.com/endless-labs/endless-rust-sdk"}

[patch.crates-io]
merlin = { git = "https://github.com/endless-labs/merlin" }
x25519-dalek = { git = "https://github.com/endless-labs/x25519-dalek", branch = "zeroize_v1" }
```

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

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

## Using Rust SDK <a href="#using-rust-sdk" id="using-rust-sdk"></a>

See the [Developer Tutorials](https://docs.endless.link/endless/devbuild/build/tutorials) for code examples showing how to use the Rust SDK.
