Rust SDK
The Rust SDK (net-mesh-sdk, imported as net_sdk) is the canonical binding —
every other language wraps the same core. These pages walk the agentic loop in one
order; each has a counterpart in the other SDKs, so the concept you learn here maps
straight across.
▸ code
cargo add net-mesh-sdkThere are two node types, and you'll use both:
Net— the event bus. Publish and subscribe to typed events (emit/subscribe_typed). Transport is a runtime choice (memory, mesh, Redis, JetStream).Mesh— the mesh node with capabilities, tools, and nRPC. This is the agentic surface: announce what you can do, discover what others can do, and invoke it.
The spine
- Quickstart — install, build a node, run a first loop.
- Announce — publish a capability the mesh can discover.
- Discover — find capabilities by what they do.
- Invoke — call a capability, get a typed result.
- Watch — consume the event stream.
- Artifacts — move blobs and directories.
- Errors — classify failures and recover.
All examples are grounded in the runnable SDK examples under sdk/examples/
(hello.rs, channels.rs, tool_calling.rs) and the SDK source. The full
conceptual background is in Concepts; this section
is the code.