43 breaking releases

0.55.0 May 21, 2025
0.53.0 Mar 12, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#1613 in HTTP server

Download history 463/week @ 2025-03-01 657/week @ 2025-03-08 598/week @ 2025-03-15 328/week @ 2025-03-22 178/week @ 2025-03-29 311/week @ 2025-04-05 343/week @ 2025-04-12 349/week @ 2025-04-19 521/week @ 2025-04-26 484/week @ 2025-05-03 449/week @ 2025-05-10 296/week @ 2025-05-17 180/week @ 2025-05-24 64/week @ 2025-05-31 86/week @ 2025-06-07 69/week @ 2025-06-14

426 downloads per month
Used in libquerier

Apache-2.0

63KB
873 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

~19–32MB
~552K SLoC