Blazingly Fast Rust ORM

Query any database.
Zero compromise.

Async-first · Type-safe · Multi-database ORM for Rust

Read Docs →

See It In Action

Clean API. Powerful queries.

Real code from rusticx — define models, insert, query, update, delete.

use rusticx::prelude::*;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Model, Serialize, Deserialize, Debug)]
#[rusticx(table = "users")]
pub struct User {
    #[rusticx(primary_key)]
    pub id: Uuid,
    #[rusticx(unique)]
    pub email: String,
    pub name: String,
    #[rusticx(nullable)]
    pub bio: Option<String>,
}
3Databases
AsyncFirst
DeriveMacros
ZeroBoilerplate

Features

Everything you need

Multi-DB Support

PostgreSQL, MySQL, and MongoDB from a single unified API.

Async Runtime

Built on Tokio, sqlx, and the MongoDB async driver.

Type-safe Queries

Composable query builder — no raw SQL strings to mistype.

Derive Macros

#[derive(Model)] generates all the boilerplate for you.

Connection Pooling

Automatic pool management for all supported backends.

Auto Migration

repo.migrate() creates and updates your tables automatically.

Compatibility

Works with your database

PostgreSQL

Available
rusticx = { version = "0.1", features = ["postgres"] }

MySQL / MariaDB

Available
rusticx = { version = "0.1", features = ["mysql"] }

MongoDB

Available
rusticx = { version = "0.1", features = ["mongo"] }

Coming soon: CockroachDB·SQLite·Cassandra

Start building in minutes

Add rusticx to your Cargo.toml and query your first record in under 5 minutes.

cargo add rusticx --features postgres