41 breaking releases

new 0.53.0 Mar 12, 2025
0.51.0 Jan 10, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#523 in HTTP server

Download history 198/week @ 2024-11-19 234/week @ 2024-11-26 447/week @ 2024-12-03 825/week @ 2024-12-10 363/week @ 2024-12-17 258/week @ 2024-12-24 269/week @ 2024-12-31 624/week @ 2025-01-07 470/week @ 2025-01-14 314/week @ 2025-01-21 290/week @ 2025-01-28 513/week @ 2025-02-04 1027/week @ 2025-02-11 311/week @ 2025-02-18 547/week @ 2025-02-25 322/week @ 2025-03-04

2,266 downloads per month
Used in libquerier

Apache-2.0

46KB
802 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

~20–33MB
~556K SLoC