#shuttle-service #actix

shuttle-actix-web

Service implementation to run an actix webserver on shuttle

15 breaking releases

new 0.27.0 Sep 21, 2023
0.25.0 Aug 28, 2023
0.22.0 Jul 31, 2023
0.13.0 Mar 27, 2023

#178 in HTTP server

Download history 168/week @ 2023-06-05 143/week @ 2023-06-12 157/week @ 2023-06-19 264/week @ 2023-06-26 347/week @ 2023-07-03 259/week @ 2023-07-10 175/week @ 2023-07-17 122/week @ 2023-07-24 152/week @ 2023-07-31 299/week @ 2023-08-07 320/week @ 2023-08-14 174/week @ 2023-08-21 245/week @ 2023-08-28 351/week @ 2023-09-04 204/week @ 2023-09-11 368/week @ 2023-09-18

1,196 downloads per month
Used in 2 crates

Apache-2.0

4KB

Shuttle service integration for the Actix Web framework.

Example

use actix_web::{get, web::ServiceConfig};
use shuttle_actix_web::ShuttleActixWeb;

#[get("/hello")]
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

~34–77MB
~1.5M SLoC