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?

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?

I would love to continue this… Rullst - 📜🦀🌐🤖🚀 “Rust for those who want to build, not suffer.” Read this in Português (Brasil). 📖 See all the changes in our Changelog! 📚 Read the Official Documentation! 📦 View on Crates.io!

我非常希望能继续完善它……Rullst - 📜🦀🌐🤖🚀 “为那些想要构建产品而非受苦的人准备的 Rust。” 阅读葡萄牙语(巴西)版本。📖 查看我们更新日志中的所有变更!📚 阅读官方文档!📦 在 Crates.io 上查看!

[!WARNING] Pardon our dust! 🚧 Rullst is under constant 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 a contributor to help us build the best web framework on the internet. 🦀❤️

[!WARNING] 请见谅!🚧 Rullst 正处于持续开发和快速迭代中。随着我们稳定框架并更新核心依赖项,您偶尔可能会遇到 Bug 或破坏性变更。对于程序崩溃,我们深表歉意!请考虑成为贡献者,帮助我们构建互联网上最棒的 Web 框架。🦀❤️

Rullst (Rust + Fullstack) is an opinionated, developer-first full-stack web framework for Rust, obsessively designed for Emotional Productivity. It 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. 💡

Rullst (Rust + Fullstack) 是一个有主见、以开发者为先的 Rust 全栈 Web 框架,其设计初衷是为了实现“情感生产力”。它的诞生是为了解决 Rust Web 生态系统中最大的痛点:过高的入门门槛,这使得 Web 编程变成了对编译器设计的博士级研究。我们认为,你应该把精力花在构建业务上,而不是与借用检查器(borrow checker)和手动路由配置作斗争。💡

The Rullst Manifesto: “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.”

Rullst 宣言:“大多数 Rust 框架把 Web 开发者当作编译器工程师来对待。而 Rullst 把开发者当作那些想要以闪电般速度构建出色产品的人来对待。”

In 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. Rullst 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:

在当前的生态系统中,编写一个简单的 CRUD 应用,你被迫将几十个 crate 拼凑在一起,手动映射嵌套的路由树,编写需要多个结构体的冗长 ORM,并不断在动态 HTML 模板中克隆变量,仅仅是为了满足借用检查器。Rullst 重新定义了这种体验。我们提供了一种集成且连贯的开发体验,将 Laravel 和 Next.js 的便捷与迭代速度,与 Rust、Axum 和 Hyper 的 F1 级性能及军事级安全性结合在一起:

  • No More Frankenstein setups: A single cohesive framework managing your server (Axum), your database (rust-eloquent), and your HTML rendering.

  • No More Borrow Checker fights in UI: Our compile-time JSX-like html! macro 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.

  • First-Class Active Record ORM: Native integration with your rust-eloquent package. Interacting with databases is as intuitive as user.save().

  • AI-Native Engineering & AI-Friendly: Designed from the ground up for modern pair-programming. Strict type-safety, zero dynamic runtime magic, automatic .ai-rules scaffolding, and structured schemas prevent AI agent hallucinations and allow instant compiler self-correction.

  • 告别“科学怪人”式的配置: 一个单一且连贯的框架,管理你的服务器 (Axum)、数据库 (rust-eloquent) 和 HTML 渲染。

  • 告别 UI 中的借用检查器之争: 我们在编译时处理的类 JSX html! 宏会在服务器端 (SSR) 处理纯元素。它在编译时直接生成优化的字符串构建器。它速度极快、安全,且默认对 SEO 友好。

  • 一流的 Active Record ORM: 与 rust-eloquent 包原生集成。与数据库交互就像 user.save() 一样直观。

  • AI 原生工程与 AI 友好: 从底层设计上就为现代结对编程而生。严格的类型安全、零动态运行时魔法、自动化的 .ai-rules 脚手架以及结构化模式,防止 AI 代理产生幻觉,并允许编译器进行即时自我修正。

🏆 Everything You Need, Built-In (v1.0.1) Rullst ships with 7 completed milestones covering every layer of modern web development:

🏆 你所需的一切,内置其中 (v1.0.1) Rullst 随附 7 个已完成的里程碑,涵盖了现代 Web 开发的每一层:

CategoryFeatures
🛠️ CLI & DXcargo rullst new wizard, make:controller, make:model -m, make:middleware, make:worker, generate:openapi, cargo rullst upgrade (self-healing)
🗄️ DatabaseActive Record ORM, Migrations (db:migrate, db:rollback, db:status), Seeders & Factories, HasMany / BelongsTo / BelongsToMany, Eager Loading
🔒 Auth & SecurityArgon2 hashing, JWT & Cookie sessions, CSRF protection, Social OAuth (Google, GitHub, Facebook, Twitter via rust-socialite), cargo rullst auth scaffolding
⚡ FrontendHTMX first-class support, TailwindCSS auto-integration, partial template rendering, Rullst Live (Phoenix LiveView-inspired server-driven UI), Wasm Islands (#[client_component])
📦 ProductionQueue (SQLite/Redis), Cache (Memory/Redis), Task Scheduler (Cron), Docker multi-stage builds, Rullst Horizon dashboard
🏢 EnterpriseDeclarative Validation, Mailer (SMTP/Resend/SendGrid), Storage (Local/S3/R2), WebSockets, Multi-Tenancy, Feature Flags, E2E Testing
🚀 Unfair AdvantageAI Core (rullst::ai — OpenAI/Gemini/Anthropic/Ollama + RAG), Rullst Studio (visual DB GUI), Self-Healing Error Console (AI auto-fix), Hot Reloading via dylib
类别功能
🛠️ CLI 与开发体验cargo rullst new 向导, make:controller, make:model -m, make:middleware, make:worker, generate:openapi, cargo rullst upgrade (自愈)
🗄️ 数据库Active Record ORM, 迁移 (db:migrate, db:rollback, db:status), 填充器与工厂, HasMany / BelongsTo / BelongsToMany, 预加载
🔒 认证与安全Argon2 哈希, JWT 与 Cookie 会话, CSRF 保护, 社交 OAuth (通过 rust-socialite 支持 Google, GitHub, Facebook, Twitter), cargo rullst auth 脚手架
⚡ 前端HTMX 一流支持, TailwindCSS 自动集成, 部分模板渲染, Rullst Live (受 Phoenix LiveView 启发的服务器驱动 UI), Wasm Islands (#[client_component])
📦 生产环境队列 (SQLite/Redis), 缓存 (内存/Redis), 任务调度器 (Cron), Docker 多阶段构建, Rullst Horizon 仪表盘
🏢 企业级声明式验证, 邮件发送 (SMTP/Resend/SendGrid), 存储 (本地/S3/R2), WebSockets, 多租户, 功能开关, E2E 测试
🚀 不公平优势AI 核心 (rullst::ai — OpenAI/Gemini/Anthropic/Ollama + RAG), Rullst Studio (可视化数据库 GUI), 自愈错误控制台 (AI 自动修复), 通过 dylib 实现热重载

🎨 The “Hello World” That Conquers at First Sight This 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:

🎨 一眼即征服的“Hello World” 这是一个完整、功能齐全的 Web 服务器,具有类型安全的路由、编译时 HTML 渲染和自动 XSS 转义。代码正好 20 行:

use rullst::{html, routes, Server, Router, response::{Html, IntoResponse}};

async fn hello() -> impl IntoResponse {
    Html(html! {
        <main style="display: grid; place-items: center; height: 100vh; background: #090d16; color: #fff; font-family: system-ui;">
            <div style="text-align: center;">
                <h1 style="font-size: 4rem; margin: 0; background: linear-gradient(135deg, #00f2fe, #4facfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
                    "Hello, World!"
                </h1>
                <p style="color: #64748b; font-size: 1.25rem; margin-top: 1rem;">
                    "Written in Rust. Rendered in microseconds. Safe by default."
                </p>
            </div>
        </main>
    })
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    Server::new(routes![get("/" => hello)])
        .run(3000)
        .await?;
    Ok(())
}

Get Started in 10 Seconds Scaffold a fully operational application with our interactive CLI wizard!

10 秒快速上手 使用我们的交互式 CLI 向导构建一个功能齐全的应用程序!

# 1. Run the interactive CLI scaffolding tool
cargo rullst new

# The wizard will prompt you:
# 🚀 App name? (no spaces allowed) -> my-app
# 🏗️ What would you like to build? -> Full-Stack Web App (SaaS, Portfolio, Blog) / REST API
# 🔥 Enable Hot Reloading by default? -> Yes / No
# 🗄️ Will your project need a Data Base? -> Yes / No
# 💾 Select a DB Provider -> Sqlite / Postgres / MySQL/MariaDB

# 2. Enter the project folder
cd my-app

# 3. Start your high-performance full-stack app immediately!
cargo run

# 🔥 Or enable instant Hot Reloading (no server restart!):
HOT_RELOAD=1 cargo run

🛠️ The Full-Stack Active Record Experience When your application grows, Rullst scales with you using Active Record:

🛠️ 全栈 Active Record 体验 当你的应用程序增长时,Rullst 通过 Active Record 与你共同扩展:

use rullst::{html, routes, Server, Router, response::{Html, IntoResponse}};
use rust_eloquent::{Eloquent, EloquentModel, sqlx::{self, FromRow}};

#[derive(Debug, Clone, FromRow, rust_eloquent::Eloquent)]
#[eloquent(table = "users")]
pub struct User {
    pub id: i32,
    pub name: String,
}

async fn home() -> impl IntoResponse {
    // Elegant, type-safe data fetching
    let users = User::all().await.unwrap();
    // ...
}