Rocket/core/codegen
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
..
src Make URI modifications to 'Route' codegen-safe. 2020-07-29 16:38:24 -07:00
tests Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
Cargo.toml Enable compilation with stable Rust. 2020-07-21 16:30:45 -07:00