10 lines
183 B
Rust
10 lines
183 B
Rust
use warp::Filter;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let hello = warp::get()
|
|
.map(|| format!("Hello world!"));
|
|
|
|
warp::serve(hello).run(([127, 0, 0, 1], 5309)).await;
|
|
}
|