summaryrefslogtreecommitdiffstats
path: root/third_party/rust/warp/examples/hello.rs
blob: 27aa2e51c81e5b530fae4d1bcc820b2d791cf3fb (plain)
1
2
3
4
5
6
7
8
9
10
#![deny(warnings)]
use warp::Filter;

#[tokio::main]
async fn main() {
    // Match any request and return hello world!
    let routes = warp::any().map(|| "Hello, World!");

    warp::serve(routes).run(([127, 0, 0, 1], 3030)).await;
}