Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use uuid::Uuid;
- use warp::{self, Filter};
- fn main() {
- let uuid = Uuid::new_v4();
- println!("{}", uuid);
- let hello = warp::path(&uuid.to_string()).map(|| "hello world");
- warp::serve(hello).run(([127, 0, 0, 1], 8080));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement