36 breaking releases

0.48.0 Oct 1, 2024
0.47.0 Jul 23, 2024
0.46.0 Jun 13, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#598 in HTTP server

Download history 167/week @ 2024-07-16 350/week @ 2024-07-23 264/week @ 2024-07-30 188/week @ 2024-08-06 179/week @ 2024-08-13 103/week @ 2024-08-20 153/week @ 2024-08-27 151/week @ 2024-09-03 285/week @ 2024-09-10 197/week @ 2024-09-17 316/week @ 2024-09-24 544/week @ 2024-10-01 195/week @ 2024-10-08 244/week @ 2024-10-15 194/week @ 2024-10-22 161/week @ 2024-10-29

841 downloads per month
Used in 2 crates

Apache-2.0

38KB
690 lines

Shuttle service integration for the Actix Web framework

Example

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())
}

Dependencies

~25–37MB
~642K SLoC