35 breaking releases

new 0.47.0 Jul 23, 2024
0.45.0 May 13, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#1131 in HTTP server

Download history 435/week @ 2024-04-01 77/week @ 2024-04-08 73/week @ 2024-04-15 299/week @ 2024-04-22 142/week @ 2024-04-29 339/week @ 2024-05-06 202/week @ 2024-05-13 143/week @ 2024-05-20 238/week @ 2024-05-27 136/week @ 2024-06-03 249/week @ 2024-06-10 131/week @ 2024-06-17 190/week @ 2024-06-24 194/week @ 2024-07-01 119/week @ 2024-07-08 99/week @ 2024-07-15

625 downloads per month
Used in rust-shield

Apache-2.0

32KB
517 lines

Shuttle service integration for the Rocket web framework

Example

use rocket::{get, routes};

#[get("/")]
fn index() -> &'static str {
    "Hello, world!"
}

#[shuttle_runtime::main]
async fn rocket() -> shuttle_rocket::ShuttleRocket {
    let rocket = rocket::build().mount("/", routes![index]);

    Ok(rocket.into())
}

Dependencies

~22–54MB
~1M SLoC