16 releases

0.2.1 Dec 5, 2024
0.2.0 Dec 1, 2024
0.1.15 Nov 29, 2024
0.1.3 Oct 22, 2024

#1973 in Web programming

Download history 44/week @ 2024-10-04 256/week @ 2024-10-11 248/week @ 2024-10-18 146/week @ 2024-10-25 136/week @ 2024-11-01 267/week @ 2024-11-08 373/week @ 2024-11-15 607/week @ 2024-11-22 366/week @ 2024-11-29 96/week @ 2024-12-06 9/week @ 2024-12-13

181 downloads per month
Used in 2 crates

MIT license

595KB
13K SLoC

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.

Dependencies

~13–27MB
~425K SLoC