Rocket/core/lib
Sergio Benitez 8749d7293a Simplify and optimize router.
This surfaced a dormant concurrency related issue. Prior to this commit,
the router used `routed_segments()` to retrieve the path segments of the
request. This was okay as there was no route in the request, and matched
segments were retrieved eagerly.

This commit makes segment matching lazy, so no matching occurs if
unnecessary. Between two matches, a `route` is atomically set of
`Request`. This is now visible in `routed_segments()`, which should not
have considered the current route in the first place. This was fixed.
2021-03-19 03:49:58 -07:00
..
benches Introduce 'RouteUri'. 2021-03-19 03:49:54 -07:00
src Simplify and optimize router. 2021-03-19 03:49:58 -07:00
tests Introduce 'RouteUri'. 2021-03-19 03:49:54 -07:00
Cargo.toml Depend on a single revision of 'state'. 2021-03-15 02:46:34 -07:00
build.rs Update minimum rustc to 1.46. 2020-10-21 19:56:12 -07:00