{"slug": "i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of", "title": "I just created the best web FullStack framework in Rust language: the Rullst! I did with the help of AI, but my tokens are over, can you help me?", "summary": "A developer has created Rullst, a full-stack web framework for Rust designed to lower the barrier to entry for web programming. The framework integrates an Active Record ORM, compile-time HTML rendering, and AI-powered tooling into a cohesive developer experience. Rullst is currently in active development, with the creator seeking community contributions to continue building out its features.", "body_md": "I would love to continue this...\n\n*Read this in Português (Brasil).*\n\n📖\n\n[See all the changes in our Changelog!]\n\n📚[Read the Official Documentation!]\n\n📦[View on Crates.io!][!WARNING]\n\nPardon our dust! 🚧\n\nRullst is underconstant development and rapid improvement. As we stabilize the framework and update core dependencies, you might occasionally encounter bugs or breaking changes. We sincerely apologize for any crashes! Please consider becoming acontributorto help us build the best web framework on the internet. 🦀❤️\n\n**Rullst** (Rust + Fullstack) is an opinionated, developer-first full-stack web framework for Rust, obsessively designed for **Emotional Productivity**.\n\nIt was created to solve the biggest problem in the Rust web ecosystem: the high barrier of entry that turns web programming into a PhD research on compiler design. We believe you should spend your energy building your business, not fighting borrow checkers and manual routing setups.\n\n\"Most Rust frameworks treat the web developer like a compiler engineer. Rullst treats the developer like someone who wants to build awesome products at lightning speed.\"\n\nIn the current ecosystem, to write a simple CRUD, you are forced to glue dozens of crates together, manually map nested routing trees, write verbose ORMs requiring multiple structs, and continuously clone variables inside dynamic HTML templates just to satisfy the borrow checker.\n\nRullst redefines this experience. We offer an integrated, cohesive developer experience that brings the sweetness and iteration speed of **Laravel and Next.js** together with the Formula 1 performance and military-grade safety of **Rust, Axum, and Hyper**:\n\n`rust-eloquent`\n\n), and your HTML rendering.`html!`\n\nmacro processes pure elements on the server (SSR). It generates optimized string-builders directly at compile time. It's blazing fast, safe, and SEO-friendly by default.`rust-eloquent`\n\n`user.save()`\n\n.`.ai-rules`\n\nscaffolding, and structured schemas prevent AI agent hallucinations and allow instant compiler self-correction.Rullst ships with **7 completed milestones** covering every layer of modern web development:\n\n| Category | Features |\n|---|---|\n🛠️ CLI & DX\n|\n`cargo rullst new` wizard, `make:controller` , `make:model -m` , `make:middleware` , `make:worker` , `generate:openapi` , `cargo rullst upgrade` (self-healing) |\n🗄️ Database\n|\nActive Record ORM, Migrations (`db:migrate` , `db:rollback` , `db:status` ), Seeders & Factories, HasMany / BelongsTo / BelongsToMany, Eager Loading |\n🔒 Auth & Security\n|\nArgon2 hashing, JWT & Cookie sessions, CSRF protection, Social OAuth (Google, GitHub, Facebook, Twitter via `rust-socialite` ), `cargo rullst auth` scaffolding |\n⚡ Frontend\n|\nHTMX first-class support, TailwindCSS auto-integration, partial template rendering, Rullst Live (Phoenix LiveView-inspired server-driven UI), Wasm Islands (`#[client_component]` ) |\n📦 Production\n|\nQueue (SQLite/Redis), Cache (Memory/Redis), Task Scheduler (Cron), Docker multi-stage builds, Rullst Horizon dashboard |\n🏢 Enterprise\n|\nDeclarative Validation, Mailer (SMTP/Resend/SendGrid), Storage (Local/S3/R2), WebSockets, Multi-Tenancy, Feature Flags, E2E Testing |\n🚀 Unfair Advantage\n|\nAI Core (`rullst::ai` — OpenAI/Gemini/Anthropic/Ollama + RAG), Rullst Studio (visual DB GUI), Self-Healing Error Console (AI auto-fix), Hot Reloading via\n`dylib` |\n\nThis is a complete, fully operational web server with type-safe routing, compile-time HTML rendering, and automatic XSS escaping. It is exactly **20 lines of code**:\n\n```\nuse rullst::{html, routes, Server, Router, response::{Html, IntoResponse}};\n\nasync fn hello() -> impl IntoResponse {\n    Html(html! {\n        <main style=\"display: grid; place-items: center; height: 100vh; background: #090d16; color: #fff; font-family: system-ui;\">\n            <div style=\"text-align: center;\">\n                <h1 style=\"font-size: 4rem; margin: 0; background: linear-gradient(135deg, #00f2fe, #4facfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent;\">\n                    \"Hello, World!\"\n                </h1>\n                <p style=\"color: #64748b; font-size: 1.25rem; margin-top: 1rem;\">\n                    \"Written in Rust. Rendered in microseconds. Safe by default.\"\n                </p>\n            </div>\n        </main>\n    })\n}\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    Server::new(routes![get(\"/\" => hello)])\n        .run(3000)\n        .await?;\n    Ok(())\n}\n```\n\nScaffold a fully operational application with our interactive CLI wizard!\n\n```\n# 1. Run the interactive CLI scaffolding tool\ncargo rullst new\n\n# The wizard will prompt you:\n# 🚀 App name? (no spaces allowed) -> my-app\n# 🏗️ What would you like to build? -> Full-Stack Web App (SaaS, Portfolio, Blog) / REST API\n# 🔥 Enable Hot Reloading by default? -> Yes / No\n# 🗄️ Will your project need a Data Base? -> Yes / No\n# 💾 Select a DB Provider -> Sqlite / Postgres / MySQL/MariaDB\n\n# 2. Enter the project folder\ncd my-app\n\n# 3. Start your high-performance full-stack app immediately!\ncargo run\n\n# 🔥 Or enable instant Hot Reloading (no server restart!):\nHOT_RELOAD=1 cargo run\n```\n\nWhen your application grows, Rullst scales with you using Active Record:\n\n```\nuse rullst::{html, routes, Server, Router, response::{Html, IntoResponse}};\nuse rust_eloquent::{Eloquent, EloquentModel, sqlx::{self, FromRow}};\n\n#[derive(Debug, Clone, FromRow, rust_eloquent::Eloquent)]\n#[eloquent(table = \"users\")]\npub struct User {\n    pub id: i32,\n    pub name: String,\n}\n\nasync fn home() -> impl IntoResponse {\n    // Elegant, type-safe data fetching\n    let users = User::all().await.unwrap();\n\n    Html(html! {\n        <div style=\"background: #0f172a; color: #fff; padding: 5rem; text-align: center; font-family: sans-serif;\">\n            <h1>\"Total Active Users: \" {users.len()}</h1>\n        </div>\n    })\n}\n\n// 1. Declare the artisan macro here to intercept CLI arguments for migrations\nrullst::artisan!();\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    // 2. The artisan! macro automatically intercepts `db:*` commands and exits early.\n    // If it's a normal run, it continues server execution here.\n\n    let router = routes![\n        get(\"/\" => home),\n    ];\n\n    Server::new(router)\n        .run(3000)\n        .await?;\n\n    Ok(())\n}\n```\n\nRullst includes an embedded, high-performance migration runner. You don't need external binaries. The framework ships with a CLI tool that parses pure Rust closures to construct your schema safely.\n\n```\n# Scaffold a new migration using pure Rust DSL\ncargo rullst make:migration create_users_table\n\n# Run all pending migrations against your database\ncargo rullst db:migrate\n\n# Rollback the last batch of migrations\ncargo rullst db:rollback\n```\n\nUnder the hood, these commands are intercepted by the `rullst::artisan!()`\n\nmacro, guaranteeing the server never starts when you only want to migrate your database.\n\nAfraid of breaking changes when upgrading the framework? Don't be. Rullst was built with a \"Self-Healing Upgrades\" philosophy.\n\nWhen a new version of Rullst introduces API changes, we never break your code immediately. Instead, we use `#[deprecated]`\n\nwarnings. You can update your entire application automatically using our CLI:\n\n```\ncargo rullst upgrade\n```\n\nThis command will safely update the Rullst dependency and use Rust's powerful `cargo fix`\n\nrefactoring tools to automatically rewrite your code to match the new API signatures. Stress-free upgrades, forever.\n\nRullst supports **Hot Reloading via Dynamic Linking** — change your routes, handlers, and templates, and see the changes reflected **instantly** without restarting the server or losing connections:\n\n```\n# Start your app in hot-reload mode\nHOT_RELOAD=1 cargo run\n\n# ⚡ Edit any handler in src/ → Rullst detects the change\n# 🔄 Background recompilation of the cdylib\n# 🚀 Router hot-swapped atomically — zero downtime!\n```\n\nUnder the hood, Rullst compiles your routes as a dynamic library (`cdylib`\n\n), loads it via `libloading`\n\n, and uses a `notify`\n\nfile-watcher to detect changes and trigger background rebuilds. The router is swapped atomically via `Arc<RwLock<Router>>`\n\n— the HTTP server never restarts and TCP connections are never dropped.\n\nRullst is structured as a modular monorepo Cargo Workspace to optimize compile times:\n\n`rullst`\n\n(Core Crate):`rullst::ai`\n\n), Rullst Live (server-driven UI), Wasm Islands, and Hot Reloading via dynamic linking.`rullst-macros`\n\n(Compiler-Engine):`cargo-rullst`\n\n(CLI Scaffold):For detailed technical conventions, directory structures, and framework APIs, refer to our [Official Specification (SST)](https://./docs/spec.md).\n\nDistributed under the MIT License. See `LICENSE`\n\nfor more details.", "url": "https://wpnews.pro/news/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of", "canonical_source": "https://dev.to/venelouis/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-did-with-the-help-g74", "published_at": "2026-05-27 22:15:30+00:00", "updated_at": "2026-05-27 22:40:50.400335+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "ai-startups", "generative-ai", "ai-infrastructure"], "entities": ["Rullst", "Rust", "Crates.io", "AI", "Brasil"], "alternates": {"html": "https://wpnews.pro/news/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of", "markdown": "https://wpnews.pro/news/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of.md", "text": "https://wpnews.pro/news/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of.txt", "jsonld": "https://wpnews.pro/news/i-just-created-the-best-web-fullstack-framework-in-rust-language-the-rullst-i-of.jsonld"}}