Quickstart
This page is the smallest generic setup path for trying CrateStack in a Rust service.1. Include A Schema
Example schema:db = Postgres argument is required today (the only accepted value). The parser is wired so future db = MySql / db = Sqlite support is non-breaking at call sites that already pass Postgres.
Embedded (mobile / desktop / browser-via-OPFS) and HTTP-client crates use different macros — see Offline-First Embedded SQLite and the client-runtime docs respectively.
2. Build The Generated Runtime
3. Use Delegates Directly
You can use CrateStack without mounting the generated REST layer.4. Optionally Bind Auth For Internal Callers
5. Optionally Mount Generated Routers
Read Next
../guides/auth-providerfor the host auth boundary../architecture/transport-architecturefor codec, framing, and envelope rules../overview/banking-readinessfor the regulated-workload primitives../guides/offline-first-sqliteif you want to run the same schema embedded against a local SQLite database — same.cstackfile, sync API on native, OPFS-backed in the browser, no tokio