32 breaking releases

new 0.44.0 Apr 23, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.34.1 Nov 29, 2023
0.13.0 Mar 27, 2023

#539 in HTTP server

Download history 115/week @ 2024-01-01 149/week @ 2024-01-08 55/week @ 2024-01-15 89/week @ 2024-01-22 63/week @ 2024-01-29 39/week @ 2024-02-05 221/week @ 2024-02-12 97/week @ 2024-02-19 205/week @ 2024-02-26 483/week @ 2024-03-04 1026/week @ 2024-03-11 251/week @ 2024-03-18 152/week @ 2024-03-25 435/week @ 2024-04-01 77/week @ 2024-04-08 73/week @ 2024-04-15

749 downloads per month
Used in rust-shield

Apache-2.0

31KB
498 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

~23–58MB
~1M SLoC