#shuttle-service #rocket

shuttle-rocket

Service implementation to run a rocket webserver on shuttle

27 breaking releases

new 0.39.0 Feb 14, 2024
0.37.0 Jan 24, 2024
0.35.2 Dec 21, 2023
0.34.1 Nov 29, 2023
0.13.0 Mar 27, 2023

#711 in HTTP server

Download history 173/week @ 2023-10-30 148/week @ 2023-11-06 176/week @ 2023-11-13 323/week @ 2023-11-20 412/week @ 2023-11-27 366/week @ 2023-12-04 383/week @ 2023-12-11 267/week @ 2023-12-18 346/week @ 2023-12-25 271/week @ 2024-01-01 341/week @ 2024-01-08 236/week @ 2024-01-15 272/week @ 2024-01-22 275/week @ 2024-01-29 199/week @ 2024-02-05 505/week @ 2024-02-12

1,259 downloads per month
Used in rust-shield

Apache-2.0

4KB

Shuttle service integration for the Rocket web framework.

Example

#[macro_use]
extern crate rocket;

# fn main() {
#[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

~31–72MB
~1.5M SLoC