#服务器 #发现 #网络 #actix #webring-plusplus

webring-plusplus-server-actix

为actix-web实现的webring++服务

4个版本

0.1.3 2024年7月10日
0.1.2 2021年4月20日
0.1.1 2021年4月20日
0.1.0 2021年4月19日

#366HTTP服务器

Download history 95/week @ 2024-07-06 10/week @ 2024-07-13 17/week @ 2024-07-27

每月122 次下载

Apache-2.0/MIT

11KB

一个webring++服务器实现,用于actix-web

use webring_plusplus_server_actix::webring_plusplus_service;

#[actix_rt::main]
async fn main() -> Result<()> {
    HttpServer::new(|| {
        App::new().service(webring_plusplus_service(vec![
            Cow::from("askjeeves.com"),
            Cow::from("altavista.com"),
        ]))
    })
    .bind("0.0.0.0:8080")?
    .run()
    .await
}

依赖关系

~14–25MB
~444K SLoC