MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / main

Function main

ch_01/minimal-warp/src/main.rs:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[tokio::main]
4async fn main() {
5 let hello = warp::path("hello")
6 .and(warp::path::param())
7 .map(|name: String| format!("Hello, {}!", name));
8
9 warp::serve(hello)
10 .run(([127, 0, 0, 1], 1337))
11 .await;
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected