shuttle-rocket 0.37.0

Service implementation to run a rocket webserver on shuttle
Documentation

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())
}
# }