Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 52 forks source link

Replace Insert and insert_routes! with builders #125

Closed Ogeon closed 7 years ago

Ogeon commented 7 years ago

While the macro was fancy and all, it started to become more problematic than helpful. Especially now, when routers doesn't have to have the classic method+path mapping. This builder system has more or less the same benefits as the macro, but it's extensible.

This is a breaking change, since it removes insert_routes! and a number of types that were used when building routers.

Ogeon commented 7 years ago

I think the last big thing that needs refactoring is how routing works. The RouteState is really not user friendly!

Ogeon commented 7 years ago

@homu r+

homu commented 7 years ago

:pushpin: Commit e483273 has been approved by Ogeon

homu commented 7 years ago

:zap: Test exempted - status