40 breaking releases

0.52.0 Feb 4, 2025
0.50.0 Jan 7, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#601 in HTTP server

Download history 166/week @ 2024-10-25 212/week @ 2024-11-01 200/week @ 2024-11-08 200/week @ 2024-11-15 203/week @ 2024-11-22 385/week @ 2024-11-29 727/week @ 2024-12-06 519/week @ 2024-12-13 299/week @ 2024-12-20 186/week @ 2024-12-27 438/week @ 2025-01-03 622/week @ 2025-01-10 358/week @ 2025-01-17 285/week @ 2025-01-24 568/week @ 2025-01-31 582/week @ 2025-02-07

1,910 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

~19–32MB
~546K SLoC