Axum Project Generator.
Scaffold a ready-to-run Axum API for Rust with a clean project structure, sqlx ORM, SQLite database, and Cargo for dependencies in one command. The code is yours, with no runtime dependency on TriStack.
Why Axum
Axum comes from the Tokio team and builds on Tower, so it shares middleware with the wider Tokio ecosystem. This stack pairs it with SQLx for async, SQL-first data access.
- Async Rust APIs on Tokio
- Reusing Tower middleware such as tracing, timeouts, and CORS
- Teams that want SQL over an ORM
Create the project
tristack my-axum-app --language rust --framework axum --frontend none --orm sqlx-rust --migrations none --database sqlite --package-manager cargo --addons docker cargo-watch clippy --git --install
What's included
- Axum app with an items CRUD example and a health check
- sqlx ORM
- SQLite database
- Cargo for dependencies
- Docker
- Cargo Watch
- Clippy
Run it
cd my-axum-app cargo build cargo watch -x run
- GET /health
- GET /api/v1/items
- POST /api/v1/items
