use warp::Filter; pub async fn run_server() -> anyhow::Result<()> { let hello = warp::path!("hello" / String) .map(|name| format!("Hello, {}!", name)); println!("Server running on http://localhost:3030"); warp::serve(hello).run(([127, 0, 0, 1], 3030)).await; Ok(()) }