36 breaking releases

0.48.0 Oct 1, 2024
0.47.0 Jul 23, 2024
0.46.0 Jun 13, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#607 in HTTP server

Download history 240/week @ 2024-06-28 132/week @ 2024-07-05 90/week @ 2024-07-12 239/week @ 2024-07-19 265/week @ 2024-07-26 262/week @ 2024-08-02 183/week @ 2024-08-09 120/week @ 2024-08-16 89/week @ 2024-08-23 114/week @ 2024-08-30 235/week @ 2024-09-06 282/week @ 2024-09-13 260/week @ 2024-09-20 475/week @ 2024-09-27 250/week @ 2024-10-04 130/week @ 2024-10-11

1,145 downloads per month
Used in rust-shield

Apache-2.0

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

~26–59MB
~1M SLoC