rullst 4.0.2

The Full-Stack Web Framework for Rust Language
Documentation

Rullst is an opinionated, developer-first full-stack web framework for Rust, obsessively designed for Emotional Productivity. It solves the biggest problem in the Rust web ecosystem: the high barrier of entry. With Rullst, you spend your energy building your business, not fighting borrow checkers and manual routing setups.

Security Audit Status Description
OSSF Scorecard OSSF Scorecard Supply-chain security & best practices
Codecov Codecov Strict code coverage enforcement
OpenSSF OpenSSF Open source security standards
Matrix DB Tests Dockerized PostgreSQL & MySQL integration tests
Continuous Fuzzing Continuous Fuzzing Fuzzing against edge cases & panics
Property Testing Property Testing Validating complex logic against edge cases
CodeQL SAST CodeQL SAST Advanced semantic code analysis
OWASP ZAP DAST OWASP ZAP DAST Dynamic vulnerability scanning
Cargo Deny Cargo Deny Banning unmaintained/vulnerable crates
Cargo Audit Cargo Audit Continuous scanning for crate vulnerabilities
Cargo SemVer SemVer Checks Strict SemVer API breakage checks
Cargo Machete Cargo Machete Detecting unused and bloated dependencies
Benchmark CI Benchmark CI Continuous performance regression testing
Snapshot Testing Snapshot Testing UI & Macro structural regression testing
Spellcheck CI Spellcheck CI Automated typo detection across docs and code
Clippy Lints Clippy Lints Strict compiler & style linting
Unsafe Policy Unsafe Policy 100% memory safe. No unsafe code blocks
Miri UB Detection Miri Detecting Undefined Behavior and memory leaks
Kani Verifier Kani Verifier Automated reasoning and formal verification
Mutation Testing Mutation Testing Mutation testing for test suite robustness
SLSA Level 3 SLSA 3 Supply-chain Levels for Software Artifacts
Panic Policy Zero Panics Policy Graceful error handling across the framework
MSRV MSRV Minimum Supported Rust Version

⚑ Unmatched Performance

Rullst's "Zero-Cost Abstraction" architecture provides full-stack productivity without sacrificing bare-metal speed. In our official Criterion micro-benchmarks:

  • SSR Rendering: ~1.07 Β΅s (4.2x faster than Dioxus, 8.5x faster than Leptos).
  • Routing: ~974 ns (Identical latency to raw Axum).

✨ The "Wow" Factor

Rullst brings the ergonomics of Laravel and Ruby on Rails to the blazing-fast, memory-safe world of Rust:

  • Rullst Nexus: An auto-generated, dark-mode CMS & Admin Panel directly from your Structs.
  • Hot-Reloading: Sub-second native DLL hot-swapping. Change your Rust code and see it instantly.
  • Zero-Panic Policy: Hardened architecture built for production edge infrastructure.
  • Interactive Scaffolding: 1-click generators for Auth, ERPs, Uptime Monitors, and Deployments.

πŸ’» The Beauty of Rullst

use rullst::{routing::get, html, Server, Response};

#[routes]
fn home() -> Response {
    html! {
        <div class="h-screen bg-slate-900 text-emerald-400 flex items-center justify-center">
            <h1>"Hello, Rullst!"</h1>
        </div>
    }
}

#[tokio::main]
async fn main() {
    Server::new()
        .route("/", get(home))
        .run()
        .await;
}

πŸ”¬ HTTP & API Frameworks (Actix-Web, Axum, Rocket, Salvo, Poem)

These are the titans of the Rust web ecosystem. They provide pristine routing, middlewares, and blazing-fast HTTP primitives. Actix-Web and Rocket pioneered the space, while Axum, Salvo, and Poem brought new paradigms.

  • The Catch: They are fundamentally focused on HTTP. You have to wire the rest of the application yourself. You must choose, configure, and integrate your own Database ORM, Auth logic, Webhooks, CLI, and Background Workers.
  • Where Rullst Excels: Batteries Included. Rullst actually uses Axum under the hood for its HTTP routing! But instead of leaving you in an empty room, Rullst gives you a fully furnished house. You get a CLI, ORM, Auth, Stripe integration, and Background Workers out-of-the-box in 1 minute.

πŸš‚ Full-Stack Frameworks (Loco)

Loco is a fantastic full-stack framework heavily inspired by Rails. It also uses Axum and provides great generators.

  • Where Rullst Excels: Emotional Productivity & DX. Rullst takes a radically opinionated stance on Developer Experience. We provide immersive CLI interactive dashboards (cargo rullst studio), built-in Wasm Islands, zero-panic architectural guarantees, Nix reproducibility, and native Omni (Desktop/Mobile via Tauri) scaffolding. If you want the absolute easiest, most visually pleasing DX in Rust, Rullst is your home.

🎨 Isomorphic Full-Stack Frameworks (Dioxus, Leptos)

These are cutting-edge frameworks that let you write both frontend and backend in a single Rust file using Server Functions and SSR (similar to Next.js or Nuxt).

  • The Catch: They are heavily Frontend/Component-Driven. Your server's primary job is to hydrate and serve UI components. If you need a traditional backend architecture (dedicated Workers, Stripe webhooks, robust ORM migrations, pure REST APIs for mobile apps), an isomorphic model can sometimes feel restrictive or overly coupled to the UI.
  • Where Rullst Excels: Architectural Freedom & Synergy. Rullst is an API-First / Traditional Full-Stack (like Rails or Laravel). It gives you an uncompromised, heavy-duty backend layer. But we don't compete with Dioxus/Leptos/Tauriβ€”we embrace them! Rullst allows you to use Dioxus for your frontend natively via Wasm Islands (cargo rullst build:client), or package your entire application into Desktop & Mobile apps via Tauri (cargo rullst make:omni).

πŸ“š Documentation & Community

We've rewritten our entire documentation from scratch into a beautiful, high-performance website. Discover everything Rullst can do, read the benchmarks, and master the framework:

πŸ‘‰ Explore the Official Website & Docs

πŸ’¬ Join the Community on Discord

Found a bug? Report an Issue