Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. use uuid::Uuid;
  2. use warp::{self, Filter};
  3.  
  4. fn main() {
  5. let uuid = Uuid::new_v4();
  6.  
  7. println!("{}", uuid);
  8.  
  9. let hello = warp::path(&uuid.to_string()).map(|| "hello world");
  10.  
  11. warp::serve(hello).run(([127, 0, 0, 1], 8080));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement