35 个重大版本
0.47.0 | 2024 年 7 月 23 日 |
---|---|
0.45.0 | 2024 年 5 月 13 日 |
0.42.0 | 2024 年 3 月 18 日 |
0.35.2 | 2023 年 12 月 21 日 |
0.13.0 | 2023 年 3 月 27 日 |
634 在 HTTP 服务器 中排名
每月 981 次下载
用于 2 crates
32KB
513 行
Actix Web 框架的 Shuttle 服务集成
示例
use actix_web::{get, web::ServiceConfig};
use shuttle_actix_web::ShuttleActixWeb;
#[get("/")]
async fn hello_world() -> &'static str {
"Hello World!"
}
#[shuttle_runtime::main]
async fn actix_web() -> ShuttleActixWeb<impl FnOnce(&mut ServiceConfig) + Send + Clone + 'static> {
let config = move |cfg: &mut ServiceConfig| {
cfg.service(hello_world);
};
Ok(config.into())
}
依赖项
~21–33MB
~577K SLoC