Salvo Project Generator.
Scaffold a ready-to-run Salvo API for Rust with a clean project structure, SeaORM ORM, SQLite database, and Cargo for dependencies in one command. The code is yours, with no runtime dependency on TriStack.
Why Salvo
Salvo uses a tree-based router where middleware and handlers share the same Handler trait, which keeps routing simple. This stack pairs it with SeaORM.
- APIs with deeply nested route trees
- Teams that want one abstraction for handlers and middleware
- Async ORM workflows
Create the project
tristack my-salvo-app --language rust --framework salvo --frontend none --orm seaorm --migrations none --database sqlite --package-manager cargo --addons docker cargo-watch clippy --git --install
What's included
- Salvo app with an items CRUD example and a health check
- SeaORM ORM
- SQLite database
- Cargo for dependencies
- Docker
- Cargo Watch
- Clippy
Run it
cd my-salvo-app cargo build cargo watch -x run
- GET /health
- GET /api/v1/items
- POST /api/v1/items
