Back to Shuttle

README

services/shuttle-warp/README.md

0.57.3297 B
Original Source

Shuttle service integration for the Warp web framework

Example

rust,no_run
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())
}