33 breaking releases

new 0.45.0 May 13, 2024
0.43.0 Apr 2, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#447 in HTTP server

Download history 198/week @ 2024-01-24 199/week @ 2024-01-31 159/week @ 2024-02-07 410/week @ 2024-02-14 346/week @ 2024-02-21 613/week @ 2024-02-28 450/week @ 2024-03-06 1073/week @ 2024-03-13 198/week @ 2024-03-20 394/week @ 2024-03-27 417/week @ 2024-04-03 265/week @ 2024-04-10 347/week @ 2024-04-17 230/week @ 2024-04-24 175/week @ 2024-05-01 205/week @ 2024-05-08

989 downloads per month
Used in 2 crates

Apache-2.0

32KB
513 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

~24–37MB
~664K SLoC