Rocket/examples
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
..
config Revamp configuration. 2020-10-20 19:21:56 -07:00
content_types Revamp configuration. 2020-10-20 19:21:56 -07:00
cookies Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
errors Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
fairings Revamp configuration. 2020-10-20 19:21:56 -07:00
form_kitchen_sink Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
form_validation Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
handlebars_templates Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
hello_2018 Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
hello_person Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
hello_world Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
json Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
managed_queue Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
manual_routes Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
msgpack Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
optional_redirect Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
pastebin Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
query_params Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
ranking Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
raw_sqlite Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
raw_upload Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
redirect Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
request_guard Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
request_local_state Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
session Revamp configuration. 2020-10-20 19:21:56 -07:00
state Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
static_files Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
stream Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
tera_templates Revamp configuration. 2020-10-20 19:21:56 -07:00
testing Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
tls Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
todo Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00
uuid Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -07:00