36 breaking releases
0.48.0 | Oct 1, 2024 |
---|---|
0.47.0 | Jul 23, 2024 |
0.46.0 | Jun 13, 2024 |
0.42.0 | Mar 18, 2024 |
0.13.0 | Mar 27, 2023 |
#607 in HTTP server
1,145 downloads per month
Used in rust-shield
38KB
694 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
~26–59MB
~1M SLoC