37 breaking releases

0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#843 in HTTP server

Download history 87/week @ 2024-08-22 114/week @ 2024-08-29 202/week @ 2024-09-05 295/week @ 2024-09-12 248/week @ 2024-09-19 425/week @ 2024-09-26 322/week @ 2024-10-03 158/week @ 2024-10-10 188/week @ 2024-10-17 167/week @ 2024-10-24 197/week @ 2024-10-31 203/week @ 2024-11-07 167/week @ 2024-11-14 213/week @ 2024-11-21 404/week @ 2024-11-28 412/week @ 2024-12-05

1,252 downloads per month
Used in rust-shield

Apache-2.0

38KB
693 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

~28–62MB
~1M SLoC