Crate shuttle_rocket

Source
Expand description

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

Re-exports§

pub use rocket;

Structs§

RocketService
A wrapper type for rocket::Rocketrocket::Build so we can implement shuttle_runtime::Service for it.

Type Aliases§

ShuttleRocket
Shuttle service integration for the Rocket web framework