Documentation Index
Fetch the complete documentation index at: https://docs.ditto.live/llms.txt
Use this file to discover all available pages before exploring further.

Development Requirements
| Requirement | Minimum Version |
|---|---|
| Rust Toolchain | 1.91.0 (for SDK v5.0.x) |
| C++ Standard | C++17 |
Platforms
| Platform | Support | Versions |
|---|---|---|
| Linux (x64) | Ubuntu 20.04 LTS and later | |
| Linux (AArch64) | Ubuntu 22.04 LTS and later | |
| macOS (ARM64) | 12 and later |
Transports
Some platforms do not support all of the types of transports that Ditto provides in general. Here is a table of which platforms support which transports, which you can use to help plan out your application.| Platform | BLE 5.0+ | AWDL | Wi-Fi Aware | LAN | WebSockets |
|---|---|---|---|---|---|
| Linux (x64) | — | — | |||
| Linux (AArch64) | — | — | |||
| macOS | — |
Rust Toolchain Requirements
The Ditto Rust SDK is slightly different from most Rust libraries because it has strict requirements on the Rust toolchain version that must be used to compile it. We’re working to relax this requirement, but for now what you need to know is that when you import a given Ditto SDK version, you must use the exact matching Rust toolchain version as shown below:| Ditto SDK version | Rust Toolchain version |
|---|---|
| ”=5.0.x” | 1.91.0 |
Cargo.toml
Selecting a Toolchain for your project
The easiest way to choose a specific toolchain version for a project is to create a file called rust-toolchain in your project directory (next to the Cargo.toml). For example, when using the 5.0.0 SDK, set the 1.91.0 toolchain like this:./rust-toolchain
shell
Target Triple Details
When deploying Ditto Rust applications, you need to consider three key compatibility points:- The Target triple of the device where the app will be deployed
- The Ditto SDK version the app depends on
- The Rust toolchain version used to compile the app
| Architecture | Operating System | Target Triples |
|---|---|---|
| Intel Core (x86_64) | Linux | x86_64-unknown-linux-gnu |
| ARM 64-bit (aarch64) | macOS (12+) | aarch64-apple-darwin |
| Linux | aarch64-unknown-linux-gnu |
Checking the target triple
Before getting started with development, it’s nice to check for certain that the device you’re working with actually has the target triple you think it should. Fortunately, Rust provides an easy way to check what the exact target triple for a device is. This easy method requires installing Rust on the target machine (the one where the app will be deployed), then running the command rustc -vV to check the compiler version information. For example, from an M1 Macbook Pro, we see an output like this:shell
Here, the field labeled “host” describes the target triple of the machine where we ran this command, in this case our target triple is aarch64-apple-darwin.