Debian Codegraph @

third_party/rust/warp/examples/hello.rs

raw
1 #![deny(warnings)]
2 use warp::Filter;
3
4 #[tokio::main]
5 async fn main() {
6 // Match any request and return hello world!
7 let routes = warp::any().map(|| "Hello, World!");
8
9 warp::serve(routes).run(([127, 0, 0, 1], 3030)).await;
10 }