38 breaking releases

new 0.50.0 Jan 7, 2025
0.49.0 Nov 12, 2024
0.48.0 Oct 1, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#1006 in HTTP server

Download history 247/week @ 2024-09-18 390/week @ 2024-09-25 368/week @ 2024-10-02 173/week @ 2024-10-09 182/week @ 2024-10-16 171/week @ 2024-10-23 207/week @ 2024-10-30 162/week @ 2024-11-06 195/week @ 2024-11-13 197/week @ 2024-11-20 402/week @ 2024-11-27 444/week @ 2024-12-04 509/week @ 2024-12-11 162/week @ 2024-12-18 70/week @ 2024-12-25 84/week @ 2025-01-01

908 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–60MB
~1M SLoC