talira

The one-person framework for Rust.

open sourceApache-2.0self-hostablefree

Loco is a Rails-inspired web framework for Rust ("Rust on Rails") for side projects and startups. It follows convention over configuration and generates connected building blocks: models on SeaORM with migrations, controllers on Axum, background jobs (a queue on Redis, Postgres or SQLite, or in-process async tasks), mailers, authentication, scheduled tasks, storage (memory, disk, S3, GCP or Azure) and a cache layer, with testing support for models, controllers and jobs. loco new creates an app (for example a SaaS starter with a client-side front end) and cargo loco runs and generates code. Parts can be used on their own: just a service, a database layer, a worker or a task.

Problems it solves

  • I want Rails-style conventions, generators and background jobs but in Rust
  • every Rust web project starts with a week of wiring an ORM, auth, jobs and config together
  • a Rust backend for a SaaS with user sign-up and login already set up
  • run background workers and scheduled jobs in a Rust web app without bolting on a separate system
  • scaffold models, migrations and controllers in Rust from the command line
  • move a Ruby web app to Rust for speed and lower hosting costs without losing developer productivity
  • send emails from a Rust web app in the background
  • upload files to S3, GCP or Azure from my Rust backend through one storage API
  • a batteries-included Rust web framework for a one-person startup
  • test Rust controllers, models and background jobs with fixtures the framework sets up

Features

  • Generators for models, controllers, jobs, mailers and authentication
  • SeaORM entities with relationships, validation and migrations
  • Controllers and middleware on Axum
  • View templating integration
  • Background jobs on a Redis, Postgres or SQLite queue, or threads/async tasks
  • Scheduler for jobs and shell scripts
  • Mailers delivered in the background
  • Storage on memory, disk, AWS S3, GCP or Azure
  • Cache layer
  • Testing support for models, controllers and jobs
View 1 more
  • loco new app generator and cargo loco CLI

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Loco does.

  1. Ruby on Rails Accelerate your agents with convention over configuration.
  2. axum HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity
  3. Phoenix Peace of mind from prototype to production.
  4. Django The web framework for perfectionists with deadlines.
  5. Laravel The PHP framework for web artisans.

Compare Loco with the top 3