41 breaking releases

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

#1397 in HTTP server

Download history 840/week @ 2024-12-11 356/week @ 2024-12-18 227/week @ 2024-12-25 343/week @ 2025-01-01 533/week @ 2025-01-08 455/week @ 2025-01-15 320/week @ 2025-01-22 405/week @ 2025-01-29 404/week @ 2025-02-05 1020/week @ 2025-02-12 337/week @ 2025-02-19 631/week @ 2025-02-26 293/week @ 2025-03-05 926/week @ 2025-03-12 308/week @ 2025-03-19 313/week @ 2025-03-26

1,963 downloads per month
Used in libquerier

Apache-2.0

63KB
872 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
~555K SLoC