mirror of https://github.com/rwf2/Rocket.git
dcb150bde7
At the moment, I simply install the first route I see into the Rocket struct directly. This is quite terrible. What's worse is that I assume that the Route's path and handler are static! The handler, actually, does have to be static, but its response may have whatever (valid) lifetime, though I'm not sure anything but `static makes sense. I'll think about it. In any case, the weird `static` restrictions need to be removed, and I need to think about which lifetimes are safe here. IE: Must all routes be static? Can I use a closure as a route? (that'd be neat). If so, how do we make that work? In any case, it's nice to see SOMETHING work. Yay! |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |