mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +00:00
1fb061496d
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.
51 lines
1.3 KiB
TOML
51 lines
1.3 KiB
TOML
[package]
|
|
name = "rocket_http"
|
|
version = "0.5.0-dev"
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
|
description = """
|
|
Types, traits, and parsers for HTTP requests, responses, and headers.
|
|
"""
|
|
documentation = "https://api.rocket.rs/v0.5/rocket_http/"
|
|
homepage = "https://rocket.rs"
|
|
repository = "https://github.com/SergioBenitez/Rocket"
|
|
readme = "../../README.md"
|
|
keywords = ["rocket", "web", "framework", "http"]
|
|
license = "MIT OR Apache-2.0"
|
|
categories = ["web-programming"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = []
|
|
tls = ["tokio-rustls"]
|
|
private-cookies = ["cookie/private", "cookie/key-expansion"]
|
|
|
|
[dependencies]
|
|
smallvec = "1.0"
|
|
percent-encoding = "2"
|
|
hyper = { version = "0.13.0", default-features = false, features = ["runtime"] }
|
|
http = "0.2"
|
|
mime = "0.3.13"
|
|
time = "0.2.11"
|
|
indexmap = "1.0"
|
|
state = "0.4"
|
|
tokio-rustls = { version = "0.14.0", optional = true }
|
|
tokio = { version = "0.2.9", features = ["sync", "tcp", "time"] }
|
|
unicode-xid = "0.2"
|
|
log = "0.4"
|
|
ref-cast = "1.0"
|
|
uncased = "0.9"
|
|
parking_lot = "0.11"
|
|
either = "1"
|
|
pear = "0.2"
|
|
|
|
[dependencies.cookie]
|
|
git = "https://github.com/SergioBenitez/cookie-rs.git"
|
|
rev = "1c3ca83"
|
|
features = ["percent-encode"]
|
|
|
|
[dev-dependencies]
|
|
rocket = { version = "0.5.0-dev", path = "../lib" }
|
|
|
|
[build-dependencies]
|
|
version_check = "0.9"
|