Crates.io | shuttle-tide |
lib.rs | shuttle-tide |
version | 0.49.0 |
source | src |
created_at | 2023-03-14 12:31:06.147409 |
updated_at | 2024-11-12 14:57:49.202059 |
description | Service implementation to run a tide webserver on shuttle |
homepage | |
repository | https://github.com/shuttle-hq/shuttle |
max_upload_size | |
id | 809815 |
size | 2,870 |
#[shuttle_runtime::main]
async fn tide() -> shuttle_tide::ShuttleTide<()> {
let mut app = tide::new();
app.with(tide::log::LogMiddleware::new());
app.at("/").get(|_| async { Ok("Hello, world!") });
Ok(app.into())
}