Skip to content
/ rwf Public
forked from levkk/rwf

Comprehensive framework for building web applications in Rust.

License

Notifications You must be signed in to change notification settings

nathanruiz/rwf

 
 

Repository files navigation

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.

About

Comprehensive framework for building web applications in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 90.6%
  • Ruby 3.7%
  • HTML 3.4%
  • C 1.1%
  • JavaScript 0.5%
  • Dockerfile 0.3%
  • Other 0.4%