Rocket/core/lib
Sergio Benitez e531770989 Make URI modifications to 'Route' codegen-safe.
This commit aims to make it impossible to modify a 'Route' structure in
a way that violates expectations of a code-generated 'Route'. It removes
'Route::set_uri()' in favor of 'Route::map_base()', which allows for
safe modifications of the route's base.

In a similar vain, this commit also includes the following changes:

  * 'Route::path()' was added to safely retrieve the route's 'path'.
  * The base of a 'Route' is underlined during launch printing.
  * 'Origin::into_normalized()' replaces 'Origin::to_normalized()'.

Fixes #1262.
2020-07-29 16:38:24 -07:00
..
benches Use 'bencher' for benchmarks on stable. 2020-07-21 15:31:44 -07:00
src Make URI modifications to 'Route' codegen-safe. 2020-07-29 16:38:24 -07:00
tests Make URI modifications to 'Route' codegen-safe. 2020-07-29 16:38:24 -07:00
Cargo.toml Rework docs for stable and async support. 2020-07-21 16:15:13 -07:00
build.rs Enable compilation with stable Rust. 2020-07-21 16:30:45 -07:00