11 lines
236 B
Rust
11 lines
236 B
Rust
#![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;
|
|
}
|