37 breaking releases

0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#432 in HTTP server

Download history 126/week @ 2024-08-17 115/week @ 2024-08-24 179/week @ 2024-08-31 209/week @ 2024-09-07 243/week @ 2024-09-14 277/week @ 2024-09-21 567/week @ 2024-09-28 214/week @ 2024-10-05 234/week @ 2024-10-12 219/week @ 2024-10-19 176/week @ 2024-10-26 196/week @ 2024-11-02 198/week @ 2024-11-09 208/week @ 2024-11-16 207/week @ 2024-11-23 347/week @ 2024-11-30

980 downloads per month
Used in 2 crates

Apache-2.0

38KB
689 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

~26–39MB
~687K SLoC