
Loco
Rust web framework modelled on Rails that generates models, controllers, background jobs and mailers for web apps and JSON APIs.
Loco is a framework for web apps and JSON APIs written in Rust. The project describes itself as following Rails and adapting its concepts to Rust. Generators create models, controllers, background jobs and mailers, and the homepage names SeaORM and Axum as part of the stack.
The README installs the generator with cargo install loco, and loco new creates an app. Data is kept in PostgreSQL or SQLite, chosen in the database URI of the configuration file. Server-rendered HTML uses the Tera template engine, and a separate guide covers building a single-page app against the Loco backend.
Worth knowing
A release build produces one binary, so the production host needs that binary and a config folder but no Rust toolchain. The deployment guide also covers a generated Dockerfile. The background workers and scheduler need an always-on host.
Identity
Rendering and deploy
- Runs as
- Always on7
- Rendering
- On a server, In the browser89
- Install with
- cargo install loco, then loco new6
Releases
Adoption
Sources
- 2026-10-26: links
loco.rs/ - 2026-10-26: links, Written in, License, GitHub stars
api.github.com/repos/loco-rs/loco - 2026-10-26: links, Templating
loco.rs/llms.txt - 2026-10-26: First release
crates.io/api/v1/crates/loco-rs - 2026-10-26: Maintainer, License model
raw.githubusercontent.com/loco-rs/loco/master/LICENSE - 2026-10-26: Categories, Install with
github.com/loco-rs/loco/blob/master/README.md - 2026-10-26: Runtime, Runs as
loco.rs/docs/how-to/deploy/ - 2026-10-26: Rendering
loco.rs/docs/how-to/render-views/ - 2026-10-26: Rendering
loco.rs/docs/how-to/build-a-spa/ - 2026-10-26: Databases
loco.rs/docs/reference/configuration/ - 2026-10-26: Contributors
api.github.com/repos/loco-rs/loco/contributors?per_page=1 - 2026-10-26: Current major version, Last release
api.github.com/repos/loco-rs/loco/releases