From 2f9ca78fd8fa8d581a88e4d9ebd180e988b5ff51 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Thu, 7 Aug 2025 11:35:45 -0700 Subject: [PATCH] [bfops/migrate-docs-45]: Migrate docs#45 --- docs/docs/modules/rust/quickstart.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docs/modules/rust/quickstart.md b/docs/docs/modules/rust/quickstart.md index 1bf9ae64a10..8901a57fa48 100644 --- a/docs/docs/modules/rust/quickstart.md +++ b/docs/docs/modules/rust/quickstart.md @@ -44,6 +44,17 @@ Now create `server`, our module, which runs in the database: spacetime init --lang rust server ``` +## How to Compile + +> [!IMPORTANT] +> You cannot use the traditional `cargo build` to build SpacetimeDB server modules. Keep this in mind when using an IDE that assumes using *cargo* for building. +Above, we just initialized a SpacetimeDB server module at `./server`: + +```bash +cd server +spacetime build +``` + ## Declare imports `spacetime init` should have pre-populated `server/src/lib.rs` with a trivial module. Clear it out so we can write a new, simple module: a bare-bones chat server.