| Crates.io | shuttle-rocket |
| lib.rs | shuttle-rocket |
| version | 0.57.0 |
| created_at | 2023-03-14 12:36:30.507895+00 |
| updated_at | 2025-09-11 12:13:16.516017+00 |
| description | Service implementation to run a rocket webserver on shuttle |
| homepage | |
| repository | https://github.com/shuttle-hq/shuttle |
| max_upload_size | |
| id | 809822 |
| size | 79,808 |
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())
}