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:
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.