Skip to content
项目

关于

用于使用 Rust 构建 Web 应用的综合框架。

网站与应用

这些数字如何统计

可以做什么

  • ✔ User-friendly ORM to build PostgreSQL queries easily
  • ✔ Dynamic templates
  • ✔ Authentication & built-in user sessions
  • ✔ Background jobs and scheduled jobs

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Rwf ‐ Rust Web Framework

Documentation Latest crate Reference docs Discord

Rwf is a comprehensive framework for building web applications in Rust. Written using the classic MVC pattern (model-view-controller), Rwf comes standard with everything you need to easily build fast and secure web apps.

Documentation

📘 The documentation is available here.

Features overview

Quick start

To add Rwf to your stack, create a Rust binary application and add rwf to your dependencies:

cargo add rwf

Building an app is then as simple as:

use rwf::prelude::*;
use rwf::http::Server;

#[controller]
async fn index() -> Response {
    Response::new().html("<h1>Welcome to Rwf!</h1>")
}

#[tokio::main]
async fn main() {
    Server::new(vec![
        route!("/" => index),
    ])
    .launch()
    .await
    .unwrap();
}

Examples

See examples for common use cases.

🚦 Status 🚦

Rwf is in beta and looking for early adopters. Most features are in a good state and documentation is usable.

🔧 Contributions

Contributions are welcome. Please see CONTRIBUTING for guidelines, ARCHITECTURE for a tour of the code, and ROADMAP for a non-exhaustive list of desired features.

探索相关项目

加载中…