CrateStack
CrateStack is a Rust-native, schema-first framework for building typed PostgreSQL-backed services from.cstack files.
Why CrateStack
CrateStack is for teams that want one schema to drive:- typed SQLx-backed delegates
- generated API contracts
- policy-aware server behavior
- generated Rust and Dart client surfaces
What You Get
The verified current slice is strongest at:- compile-time schema validation with
include_schema! - generated SQLx-backed model delegates
- generated Axum CRUD and procedure routes
- host-owned auth with generated policy enforcement
- generated Rust and Dart client surfaces
Product Boundaries
The implementation is still narrower than the broader target architecture. Current gaps that matter when adopting it:- COSE transport is not implemented yet
- the client runtime is still a partial spike
- the parser still covers an initial schema subset
- some exposure and field-level policy controls are still deferred
Documentation Track
The public docs currently publish one active track:v0for the current product shape and implementation-aligned docs
overview/release-track for the naming and stability rules behind that track.
Start Here
overview/current-statefor the verified current-state summarygetting-started/quickstartfor a minimal generic setup pathguides/auth-providerfor the host auth boundaryarchitecture/transport-architecturefor transport model decisions
Key Areas
guides/for operational usage boundaries such as auth and telemetryarchitecture/for transport and runtime designreference/for supported auth and policy behaviorinternals/for ADRs, PRD material, and dependency decisions
Repository Note
This documentation tree is organized as a standalone Mintlify project. The framework code lives in the separategit@github.com:vaam-store/cratestack.git repository.
Rust API Docs
The generated Rust documentation is published athttps://rust-doc.cratestack.dev/.