rustlavel 0.8.1

A Laravel-inspired full-stack web framework for Rust
Documentation

rustlavel

A Laravel-inspired full-stack web framework for Rust, written from scratch.

No Axum, no hyper, no SeaORM. Tokio is the only large dependency, and the HTTP/1.1 server, router, template engine, query builder, migrator, ORM and SMTP client are all written here. Cryptography is the deliberate exception — argon2, sha2, hmac, aes-gcm and rustls are used rather than reinvented, because writing your own cipher is a vulnerability, not an achievement.

A first application

cargo install rustlavel-cli
rustlavel new blog --with db,view
cd blog && rustlavel serve

Or the whole thing — sign-in, passkeys, roles and permissions, an audit trail, a settings screen, menus and notifications, in about a hundred files you own:

rustlavel new app --with auth-kit

Files you own do not move when the framework does, so a later release brings them forward by merging rather than overwriting:

rustlavel upgrade --dry-run
rustlavel upgrade

Where only one side changed a file, that side wins. Where both did, it is written with conflict markers and the build stops until somebody decides.

What a handler looks like

use rustlavel::prelude::*;

#[rustlavel::main]
async fn main() -> Result<()> {
    App::new()?
        .routes(|r| {
            r.get("/", |_req: Request| async { "Hello" });
        })
        .run()
        .await
}

Packages

Everything optional is a feature flag, and what you do not enable is never compiled:

ai, audit, auth, cache, client, db, debugbar, flags, i18n, ldap, mail, mcp, metrics, model-cache, oauth, oauth-provider, openapi, otel, queue, rbac, search, storage, telescope, validation, vault, view, webauthn, ws.

[dependencies]
rustlavel = { version = "0.8", features = ["db", "view", "auth"] }

Databases

PostgreSQL, MySQL and SQL Server, each with its own wire protocol written here and TLS through rustls. Oracle is deliberately excluded: its protocol has never been published, so a driver means wrapping a proprietary library or a multi-year reverse-engineering effort.

Documentation

Licence

MIT.