Crates.io | shuttle-warp |
lib.rs | shuttle-warp |
version | 0.49.0 |
source | src |
created_at | 2023-03-14 12:27:24.455302 |
updated_at | 2024-11-12 14:57:53.168911 |
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())
}