MESH ONLINECODENAME: Final Countdown

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-sdk

There 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

  1. Quickstart — install, build a node, run a first loop.
  2. Announce — publish a capability the mesh can discover.
  3. Discover — find capabilities by what they do.
  4. Invoke — call a capability, get a typed result.
  5. Watch — consume the event stream.
  6. Artifacts — move blobs and directories.
  7. 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.