resonate-basic-ephemeral-world-usage-rust
Resonate Basic Ephemeral World Usage — Rust
SDK note. The Resonate Rust SDK is in active development (
resonate-sdkv0.6.0, published on crates.io). APIs may change between releases. Treat every code example as a moving target until the SDK reaches 1.0.
Overview
The ephemeral world is anywhere your Rust program starts: main(), an Axum or Actix handler, a CLI entry point, a background service. You use the Resonate client to register durable functions and invoke them top-level. Once an invocation starts, it crosses into the durable world and Resonate guarantees its completion — retries on failure, resumes after crashes, continues across process restarts.
This skill covers the Client API surface. The Durable World (Context APIs inside #[resonate::function]) lives in resonate-basic-durable-world-usage-rust.
Install
The Rust SDK is published on crates.io. Add to your Cargo.toml: