Show HN: Rust Web Framework

Date:

Rwf ‐ Rust Web Framework

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

  • ✔️ HTTP server
  • ✔️ User-friendly ORM to build PostgreSQL queries easily
  • ✔️ Dynamic templates
  • ✔️ Authentication & built-in user sessions
  • ✔️ Middleware
  • ✔️ Background jobs and scheduled jobs
  • ✔️ Database migrations
  • ✔️ Built-in REST framework with JSON serialization
  • ✔️ WebSockets support
  • ✔️ Static files hosting
  • ✔️ Tight integration with Hotwired Turbo for building backend-driven SPAs
  • ✔️ Environment-specific configuration
  • ✔️ Logging and metrics
  • ✔️ CLI
  • ✔️ WSGI server for migrating from Django/Flask apps

Quick start

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

cargo add rwf
cargo add tokio@1 --features full

Building an app is then as simple as:

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

Examples

See examples for common use cases.

🚧 Status 🚧

Rwf is in early development and not ready for production. Many features and documentation are incomplete. 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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Share post:

Subscribe

Popular

More like this
Related

Mancandy Mexico Spring 2025

For spring 2025, Mancandy’s Andrés Jiménez drew inspiration from...

Alfredo Martínez Mexico Spring 2025

The Mexican painter and poet Carmen Mondragón, who was...

Shop the Best Hoop Earrings—No Jewelry Box Is Complete Without a Pair

*All products featured on *Vogue are independently selected by...

Woman drops phone, gets stuck upside-down in rock crevice looking for it

We use cookies and data toDeliver and maintain Google...