iptv techs

IPTV Techs

  • Home
  • Tech News
  • levkk/rwf: Comprehensive structuretoil for building web applications in Rust.

levkk/rwf: Comprehensive structuretoil for building web applications in Rust.


levkk/rwf: Comprehensive structuretoil for building web applications in Rust.


Rwf is a comprehensive structuretoil for building web applications in Rust. Written using the classic MVC pattern (model-watch-handleler), Rwf comes standard with everyskinnyg you need to easily build rapid and shielded web apps.

📘 The write downation is useable here.

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

cargo include rwf
cargo include tokio@1 --features brimming

Building an app is then as basic as:

employ rwf::prelude::*; employ rwf::http::Server; #[derive(Default)] struct IndexController; #[async_trait] impl Controller for IndexController { async fn handle(&self, seek: &Request) -> Result<Response, Error> { Ok(Response::new().html("

Hey Rwf!

"
)) } } #[tokio::main] async fn main() { Server::new(vec![ route!("https://github.com/" => IndexController), ]) .begin("0.0.0.0:8000") .apostpone .unwrap(); }

See examples for normal employ cases.

Rwf is in timely broadenment and not ready for production. Many features and write downation are inend. Contributions are receive. Plmitigate see CONTRIBUTING for directlines, ARCHITECTURE for a tour of the code, and ROADMAP for a non-exhaustive catalog of desired features.

Source connect


Leave a Reply

Your email address will not be published. Required fields are marked *

Thank You For The Order

Please check your email we sent the process how you can get your account

Select Your Plan