spacetimedb-rust
SpacetimeDB Rust Module Development
SpacetimeDB modules are WebAssembly applications that run inside the database. They define tables to store data and reducers to modify data. Clients connect directly to the database and execute application logic inside it.
Tested with: SpacetimeDB 2.0+ APIs
HALLUCINATED APIs — DO NOT USE
These APIs/patterns are incorrect. LLMs frequently hallucinate them.
Both macro forms are valid in 2.0: #[spacetimedb::table(...)] / #[table(...)] and #[spacetimedb::reducer] / #[reducer].
#[derive(Table)] // Tables use #[table] attribute, not derive
#[derive(Reducer)] // Reducers use #[reducer] attribute
More from clockworklabs/spacetimedb
spacetimedb-concepts
Understand SpacetimeDB architecture and core concepts. Use when learning SpacetimeDB or making architectural decisions.
126spacetimedb-cli
SpacetimeDB CLI reference for initializing projects, building modules, publishing databases, querying data, and managing servers
113spacetimedb-typescript
Build TypeScript clients for SpacetimeDB. Use when connecting to SpacetimeDB from web apps, Node.js, Deno, Bun, or other JavaScript runtimes.
90spacetimedb-csharp
Build C# modules and clients for SpacetimeDB. Covers server-side module development and client SDK integration.
40spacetimedb-unity
Integrate SpacetimeDB with Unity game projects. Use when building Unity clients with MonoBehaviour lifecycle, FrameTick, and PlayerPrefs token persistence.
31cli
SpacetimeDB CLI reference for initializing projects, building modules, publishing databases, querying data, and managing servers
2