Crates.io | shuttle-warp |
lib.rs | shuttle-warp |
version | 0.48.0 |
source | src |
created_at | 2023-03-14 12:27:24.455302 |
updated_at | 2024-10-01 14:36:48.621703 |
description | Service implementation to run a warp webserver on shuttle |
homepage | |
repository | https://github.com/shuttle-hq/shuttle |
max_upload_size | |
id | 809810 |
size | 2,836 |
use warp::Filter;
use warp::Reply;
#[shuttle_runtime::main]
async fn warp() -> shuttle_warp::ShuttleWarp<(impl Reply,)> {
let route = warp::any().map(|| "Hello, World!");
Ok(route.boxed().into())
}