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 -
Replying to @jarrednicholls @sgrif
I think just a little convention and help functions and it can be clean. I do like actix-web's App::scope() (https://actix.rs/actix-web/actix_web/struct.App.html#method.scope …) to be able to configure parts of an application within their own contexts... which might be against your original complaint when I think about it.
1 reply 0 retweets 0 likes
These definitely aren't complaints. To be clear, I'm basing my comments off of like 30 minutes of skimming docs/code. Should not hold too much authority beyond "I'm concerned" That said, I wish young frameworks had bigger security warnings in their readmes
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.