
Loco.rs Has a Free API: Ruby on Rails for Rust — Full-Stack Web Framework
Loco is a Rust web framework inspired by Ruby on Rails. It provides generators, ORM, background jobs, mailers, and deployment — all the batteries Rails includes, but with Rust's performance and safety. Why Loco Matters Rust web development usually means assembling 10+ crates: Axum for routing, SeaORM for database, Tokio for async, custom solutions for jobs, auth, and mailers. Loco bundles everything into one opinionated framework. What you get for free: Rails-like generators (scaffold, model, controller, migration) SeaORM integration with automatic migrations Background jobs with SidekiqWorker-like API Built-in authentication (JWT + session) Mailer with templates Testing framework One-command deployment CLI similar to rails Quick Start # Install cargo install loco-cli # Create project loco new my-app cd my-app # Generate scaffold (model + controller + migration) cargo loco generate scaffold post title:string body:text published:bool # Run migrations cargo loco db migrate # Start server
Continue reading on Dev.to Webdev
Opens in a new tab



