37 breaking releases

new 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

#428 in HTTP server

Download history 342/week @ 2024-07-22 281/week @ 2024-07-29 156/week @ 2024-08-05 206/week @ 2024-08-12 108/week @ 2024-08-19 141/week @ 2024-08-26 164/week @ 2024-09-02 237/week @ 2024-09-09 224/week @ 2024-09-16 290/week @ 2024-09-23 571/week @ 2024-09-30 187/week @ 2024-10-07 238/week @ 2024-10-14 216/week @ 2024-10-21 191/week @ 2024-10-28 159/week @ 2024-11-04

812 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
~689K SLoC