rent

Rent

Rent is a Rust-native relational database toolkit. Define application models in a central RSL document, generate a statically typed async Rust client, and evolve the matching database through explicit, reviewable migrations.

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

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 from the Rent workspace, 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 Getting started for the full walkthrough, or follow the progressive tutorial to grow the same ideas into relationships, transactions, concurrency, tenancy, migrations, and production runtime behavior.

On this page