Skip to content

Welcome

Introduction to Rent

Rent is a Rust-native relational database toolkit. Describe your application's data in RSL, generate a type-safe async Rust client, and review SQL migrations as your schema grows. You can also model who can access that data: keep a post private, share it with a colleague, or let documents inherit their workspace's permissions. Permissions are optional.

Rent supports PostgreSQL, MySQL, MariaDB, and SQLite. It includes typed CRUD, relationships and eager loading, transactions, optimistic locking, pagination, streaming, optional relationship permissions, reusable model mixins, migration safety, and first-class packages for useful PostgreSQL extensions.

Explore what you can build with Rent:

Drag to pan · scroll or pinch to zoom · use the controls to reset or open fullscreen

The shortest path to a running application

After installing the CLI, SQLite gives you a complete first run without Docker:

rent new social-app --database sqlite
cd social-app

rent doctor
rent migrate dev --name initial
cargo run

That path creates a central RSL schema, generates the typed Rust client, writes and applies the first checksummed migration, and connects a Tokio application to the resulting database.

Continue with Your first app for the full walkthrough. Then follow Learn by example to build on these ideas, or choose a task guide in Using Rent.