serv4rs

Crates.ioserv4rs
lib.rsserv4rs
version0.1.7
sourcesrc
created_at2023-03-30 03:36:59.221521
updated_at2023-04-07 16:21:37.314799
descriptionserv4rs is a powerful, pragmatic, and extremely fast web framework for Rust
homepagehttps://github.com/chunhui2001/rs-boxes
repositoryhttps://github.com/chunhui2001/rs-boxes
max_upload_size
id824606
size1,728,538
Keesh (chunhui2001)

documentation

https://docs.rs/serv4rs

README

🔥 serv4rs is a powerful, pragmatic, and extremely fast web framework for Rust

use serv4rs::{reg_router, run};

#[rustfmt::skip]
pub fn config(cfg: &mut actix_web::web::ServiceConfig) {
    reg_router(cfg, "GET", "/1", || async { "Hey there! 啊啊送积分啦;送积分啦 1" }); 
    reg_router(cfg, "GET", "/2", || async { "Hey there! 啊啊送积分啦;送积分啦 2" }); 
    reg_router(cfg, "GET", "/3", || async { "Hey there! 啊啊送积分啦;送积分啦 3" }); 
    reg_router(cfg, "GET", "/4", || async { "Hey there! 啊啊送积分啦;送积分啦 4" });    
}

#[tokio::main]
async fn main() {
    run("serv4rs", config).await
}
Commit count: 0

cargo fmt