9
发现一个国人写的人体工学的 RUST web 框架 Salvo
source link: https://www.v2ex.com/t/797985
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
salvo web framework https://github.com/salvo-rs/salvo
use salvo::prelude::*;
#[fn_handler]
async fn hello_world() -> &'static str {
"Hello World"
}
#[tokio::main]
async fn main() {
let router = Router::new().get(hello_world);
let server = Server::new(router);
server.bind(([0, 0, 0, 0], 7878)).await;
}
感觉和 GIN 好像 ,benchmark 感觉也好像不错的鸭子
https://web-frameworks-benchmark.netlify.app/result?l=rust
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK