Rocket/core/lib/tests
Sergio Benitez 1fb061496d Revamp configuration.
This commit completely overhauls Rocket's configuration systems, basing
it on the new Figment library. It includes many breaking changes
pertaining to configuration. They are:

  * "Environments" are replaced by "profiles".
  * 'ROCKET_PROFILE' takes the place of 'ROCKET_ENV'.
  * Profile names are now arbitrary, but 'debug' and 'release' are given
    special treatment as default profiles for the debug and release
    compilation profiles.
  * A 'default' profile now sits along-side the meta 'global' profile.
  * The concept of "extras" is no longer present; users can extract any
    values they want from the configured 'Figment'.
  * The 'Poolable' trait takes an '&Config'.
  * The 'secrets' feature is disabled by default.
  * It is a hard error if 'secrets' is enabled under the 'release'
    profile and no 'secret_key' is configured.
  * 'ConfigBuilder' no longer exists: all fields of 'Config' are public
    with public constructors for each type.
  * 'keep_alive' is disabled with '0', not 'false' or 'off'.
  * Inlined error variants into the 'Error' structure.
  * 'LoggingLevel' is now 'LogLevel'.
  * Limits can now be specified in SI units: "1 MiB".

The summary of other changes are:

  * The default config file can be configured with 'ROCKET_CONFIG'.
  * HTTP/1 and HTTP/2 keep-alive configuration is restored.
  * 'ctrlc' is now a recognized config option.
  * 'serde' is now a core dependency.
  * TLS misconfiguration errors are improved.
  * Several example use '_' as the return type of '#[launch]' fns.
  * 'AdHoc::config()' was added for simple config extraction.
  * Added more documentation for using 'Limits'.
  * Launch information is no longer treated specially.
  * The configuration guide was rewritten.

Resolves #852.
Resolves #209.
Closes #1404.
Closes #652.
2020-10-20 19:21:56 -07:00
..
absolute-uris-okay-issue-443.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
attach-inspect.rs Replace 'Manifest' with 'Cargo'. 2020-07-11 09:24:30 -07:00
catcher-cookies-1213.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
conditionally-set-server-header-996.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
derive-reexports.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
fairing_before_head_strip-issue-546.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
flash-lazy-removes-issue-466.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
form_method-issue-45.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
form_value_decoding-issue-82.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
form_value_from_encoded_str-issue-1425.rs Tidy 'form_value_from_encoded_str' test. 2020-09-10 02:15:29 -07:00
head_handling.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
limits.rs Revamp configuration. 2020-10-20 19:21:56 -07:00
local-request-content-type-issue-505.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
local_request_private_cookie-issue-368.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
many-cookie-jars-at-once.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
mapped-base-issue-1262.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
mount_point.rs Migrate core to Rust 2018. 2019-06-25 13:45:23 -04:00
nested-fairing-attaches.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
precise-content-type-matching.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
redirect_from_catcher-issue-113.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
responder_lifetime-issue-345.rs Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
route_guard.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
segments-issues-41-86.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
strict_and_lenient_forms.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
twice_managed_state.rs Add a test verifying that attempting to manage the same state type twice panics. 2020-07-11 09:24:29 -07:00
typed-uri-docs-redef-issue-1373.rs Generate 'uri!' macro names independently of span. 2020-07-14 00:44:59 -07:00
unsound-local-request-1312.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
untracked-vs-tracked.rs Add (un)tracked 'Client' integration tests. 2020-10-14 21:47:42 -07:00
uri-percent-encoding-issue-808.rs Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00