39 breaking releases

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

#616 in HTTP server

Download history 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 414/week @ 2024-11-30 753/week @ 2024-12-07 489/week @ 2024-12-14 268/week @ 2024-12-21 177/week @ 2024-12-28 518/week @ 2025-01-04

1,541 downloads per month
Used in libquerier

Apache-2.0

39KB
696 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

~25–38MB
~646K SLoC