33 breaking releases
new 0.45.0 | May 13, 2024 |
---|---|
0.43.0 | Apr 2, 2024 |
0.42.0 | Mar 18, 2024 |
0.35.2 | Dec 21, 2023 |
0.13.0 | Mar 27, 2023 |
#572 in HTTP server
860 downloads per month
Used in rust-shield
32KB
517 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
~23–56MB
~1M SLoC