summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 7fa1bda2703f797224988bd99e99cd4e15b96592 (plain)
1
2
3
4
5
6
7
8
9
10
11
use warp::Filter;

#[tokio::main]
async fn main() {
    let hello = warp::any()
        .map(|| "hello, world\n".to_string());

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