resonate-basic-durable-world-usage-rust

Installation
SKILL.md

Resonate Basic Durable World Usage — Rust

SDK note. The Resonate Rust SDK (resonate-sdk v0.6.0, published on crates.io) is in active development; APIs may change between releases. Verify against the current SDK source before relying on any specific shape.

Overview

Durable functions in Rust are async functions decorated with #[resonate::function]. The macro wraps your function in Resonate's durable-execution machinery — every successful ctx.run / ctx.rpc / ctx.sleep is a checkpoint, and the function resumes from the last checkpoint on process restart.

This skill covers the Context API surface used inside those functions. The ephemeral-world counterpart (registration, top-level invocation, promises) lives in resonate-basic-ephemeral-world-usage-rust.

The contract

  • Attribute macro: #[resonate::function] (or #[resonate::function(name = "alias")])
  • Async function: async fn — tokio is the default runtime
  • Return type: Result<T> (aliased from resonate::error::Result) — use ? for propagation
  • First parameter inferred kind:
Installs
1
GitHub Stars
6
First Seen
Aug 10, 2026
resonate-basic-durable-world-usage-rust — resonatehq/resonate-skills