I have implemented a simple set of REST services using these frameworks:
- actix-web: rust-actix-web-demo/main.rs at master · mvolkmann/rust-actix-web-demo · GitHub
- rocket: rust-rocket-demo/main.rs at master · mvolkmann/rust-rocket-demo · GitHub
- tide: rust-tide-demo/main.rs at master · mvolkmann/rust-tide-demo · GitHub
I want to do the same using warp, but I'm struggling mightily to figure it out.
It would be great is someone that is familiar with warp could show me how this is done or point me to a similar example. It seems there are multiple approaches that can be used. The code looks simplest to me when the
warp::path! macro is used to define each route.