| Crates.io | rwf |
| lib.rs | rwf |
| version | 0.2.1 |
| created_at | 2024-10-10 22:45:09.696284+00 |
| updated_at | 2024-12-05 20:42:52.700394+00 |
| description | Framework for building web applications in the Rust programming language |
| homepage | https://levkk.github.io/rwf/ |
| repository | https://github.com/levkk/rwf |
| max_upload_size | |
| id | 1404682 |
| size | 586,235 |
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.
📘 The documentation is available here.
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();
}
See examples for common use cases.
Rwf is in beta and looking for early adopters. Most features are in a good state and documentation is usable.
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.