I really dislike the trend that several Rust web frameworks are following of using annotations on functions to define routes. Being able to quickly see which routes are available on an application in one place is extremely useful, as is using a function for multiple routes
Overall I do, too. I think its routing syntax is super funky, but passable at least. TBH Scala Play's routes file is super funky but would honestly work super well for Rust. Wish warp had more concrete examples, looking forward to seeing it evolve
-
-
https://github.com/seanmonstar/warp/blob/1a484ca18797cdbb5e32bf7e7a0d6d7cffb2d12d/examples/todos.rs#L62-L99 … really needs to be way less verbose though. Haven't evaluated warp for security yet, but this makes me think it requires knowing to put "I want CSRF protection (token-based), I want same-origin checking, I want encrypted cookies/session rotation" everywher
-
Yes I dropped an e to make that fit, no I am not happy about it
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.