39 breaking releases

new 0.51.0 Jan 10, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#1008 in HTTP server

Download history 260/week @ 2024-09-20 475/week @ 2024-09-27 250/week @ 2024-10-04 160/week @ 2024-10-11 201/week @ 2024-10-18 156/week @ 2024-10-25 197/week @ 2024-11-01 217/week @ 2024-11-08 165/week @ 2024-11-15 228/week @ 2024-11-22 441/week @ 2024-11-29 601/week @ 2024-12-06 285/week @ 2024-12-13 120/week @ 2024-12-20 74/week @ 2024-12-27 183/week @ 2025-01-03

854 downloads per month
Used in rust-shield

Apache-2.0

39KB
700 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

~27–60MB
~1M SLoC