30 breaking releases

0.42.0 Mar 18, 2024
0.40.0 Mar 4, 2024
0.35.2 Dec 21, 2023
0.34.1 Nov 29, 2023
0.13.0 Mar 27, 2023

#127 in HTTP server

Download history 246/week @ 2023-12-04 284/week @ 2023-12-11 250/week @ 2023-12-18 166/week @ 2023-12-25 63/week @ 2024-01-01 204/week @ 2024-01-08 101/week @ 2024-01-15 168/week @ 2024-01-22 226/week @ 2024-01-29 109/week @ 2024-02-05 375/week @ 2024-02-12 369/week @ 2024-02-19 466/week @ 2024-02-26 545/week @ 2024-03-04 1058/week @ 2024-03-11 324/week @ 2024-03-18

2,449 downloads per month
Used in 2 crates

Apache-2.0

4KB

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

~23–38MB
~657K SLoC