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 runtime 1.11.x,
spacetimedbcrate 1.1.x
HALLUCINATED APIs — DO NOT USE
These APIs DO NOT EXIST. LLMs frequently hallucinate them.
// WRONG — these macros/attributes don't exist
#[spacetimedb::table] // Use #[table] after importing
#[spacetimedb::reducer] // Use #[reducer] after importing
#[derive(Table)] // Tables use #[table] attribute, not derive
#[derive(Reducer)] // Reducers use #[reducer] attribute
More from douglance/spacetimedb
spacetimedb-typescript
Build TypeScript clients for SpacetimeDB. Use when connecting to SpacetimeDB from web apps, Node.js, Deno, Bun, or other JavaScript runtimes.
35spacetimedb-cli
SpacetimeDB CLI reference for initializing projects, building modules, publishing databases, querying data, and managing servers
15spacetimedb-concepts
Understand SpacetimeDB architecture and core concepts. Use when learning SpacetimeDB or making architectural decisions.
15spacetimedb-csharp
Build C# modules and Unity clients for SpacetimeDB. Covers server-side module development and client SDK integration.
3