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
-
-
-
Replying to @jarrednicholls
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
1 reply 0 retweets 0 likes -
Replying to @sgrif @jarrednicholls
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
1 reply 0 retweets 1 like -
Replying to @sgrif @jarrednicholls
Yes I dropped an e to make that fit, no I am not happy about it
1 reply 0 retweets 1 like -
Replying to @sgrif
Haha. Yeah, I think you have some flexibility in setting up a top-level filter and then applying it to sub-filters, so common things like authentication, protection, logging, etc. can be done once and then have filters appended to it over and over again. Right?...right.
2 replies 0 retweets 0 likes
I would hope "make my app secure against common, well known attacks" is there by default (obv token based CSRF protection is hard to do if you have no opinion on form generation which is why I'm still waiting for a Rails instead of a Sinatra)
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.