| Crates.io | shuttle-poem |
| lib.rs | shuttle-poem |
| version | 0.57.0 |
| created_at | 2023-03-14 12:31:00.029851+00 |
| updated_at | 2025-09-11 12:12:57.289232+00 |
| description | Service implementation to run a poem webserver on shuttle |
| homepage | |
| repository | https://github.com/shuttle-hq/shuttle |
| max_upload_size | |
| id | 809814 |
| size | 61,294 |
use poem::{get, handler, Route};
use shuttle_poem::ShuttlePoem;
#[handler]
fn hello_world() -> &'static str {
"Hello, world!"
}
#[shuttle_runtime::main]
async fn poem() -> ShuttlePoem<impl poem::Endpoint> {
let app = Route::new().at("/", get(hello_world));
Ok(app.into())
}