Arche ships two Rust routes:
| Preset | Shape |
|---|---|
rust-api | Axum API + Cargo workspace, SQLx-ready |
rust-fullstack | Next.js + Axum API, Clerk/JWT auth boundary |
Both are Requires validation in the registry.
Scaffold API-only
terminal
bun run dev:cli -- my-api --yes --preset=rust-api --dir=../projects
Scaffold fullstack
terminal
bun run dev:cli -- my-product --yes --preset=rust-fullstack --dir=../projectsVerify
terminal
cd ../projects/my-api
cargo check
cargo test
# or monorepo scripts from generated package.json / AGENTS.mdGenerated trees include rustfmt / clippy hooks when CI is enabled (--ci).
Architecture
Read Rust architecture for how the web and API boundaries connect in rust-fullstack.
Common failures
| Symptom | Fix |
|---|---|
| SQLx compile errors without DB | Use offline sqlx-data.json or set DATABASE_URL for prepare |
| Wrong auth package | Fullstack uses JWT/Clerk boundary—not Better Auth from TS preset |
| Missing toolchain | Install stable Rust via rustup |