summaryrefslogtreecommitdiffstats
path: root/third_party/rust/warp/examples/dir.rs
blob: 30261a220ef27dca87d2bde6ac6fcdfedbf17666 (plain)
1
2
3
4
5
6
7
8
9
10
#![deny(warnings)]

#[tokio::main]
async fn main() {
    pretty_env_logger::init();

    warp::serve(warp::fs::dir("examples/dir"))
        .run(([127, 0, 0, 1], 3030))
        .await;
}