Rust SDK
All modules share a common MixnetClient that manages gateway connections, Sphinx packet encryption, routing, and cover traffic.
Full API reference: docs.rs/nym-sdk (opens in a new tab)
For an overview of what the SDK can do, see the Tour. For setup instructions, see Installation.
Modules
-
Stream: multiplexed
AsyncRead + AsyncWritebyte streams over the Mixnet. If you're used to TCP sockets, start here. -
Mixnet: raw message payloads, independently routed, no connections or ordering. Use this when you want full control over the communication model.
-
Client Pool: keeps ready-to-use
MixnetClientinstances warm for bursty workloads. -
TcpProxy (deprecated): TCP socket proxying with session management and message ordering. Use Stream for new projects.
-
FFI: Go and C/C++ bindings.