9

发现一个国人写的人体工学的 RUST web 框架 Salvo

 2 years ago
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.

V2EX  ›  程序员

发现一个国人写的人体工学的 RUST web 框架 Salvo

  DollarKiller · 20 小时 44 分钟前 · 1859 次点击

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK