mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-18 15:39:04 +00:00
03127f4dae
This commit adds the 'local::blocking' module and moves the existing asynchronous testing to 'local::asynchronous'. It also includes several changes to improve the local API, bringing it to parity (and beyond) with master. These changes are: * 'LocalRequest' implements 'Clone'. * 'LocalResponse' doesn't implement 'DerefMut<Target=Response>'. Instead, direct methods on the type, such as 'into_string()', can be used to read the 'Response'. * 'Response::body()' returns an '&ResponseBody' as opposed to '&mut ResponseBody', which is returned by a new 'Response::body_mut()'. * '&ResponseBody' implements 'known_size()` to retrieve a body's size, if it is known. Co-authored-by: Jeb Rosen <jeb@jebrosen.com>
56 lines
1.4 KiB
TOML
56 lines
1.4 KiB
TOML
[package]
|
|
name = "rocket"
|
|
version = "0.5.0-dev"
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
|
description = """
|
|
Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
|
|
"""
|
|
documentation = "https://api.rocket.rs/v0.5/rocket/"
|
|
homepage = "https://rocket.rs"
|
|
repository = "https://github.com/SergioBenitez/Rocket"
|
|
readme = "../../README.md"
|
|
keywords = ["rocket", "web", "framework", "server"]
|
|
license = "MIT OR Apache-2.0"
|
|
build = "build.rs"
|
|
categories = ["web-programming::http-server"]
|
|
edition = "2018"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[features]
|
|
default = ["private-cookies"]
|
|
tls = ["rocket_http/tls"]
|
|
private-cookies = ["rocket_http/private-cookies"]
|
|
|
|
[dependencies]
|
|
rocket_codegen = { version = "0.5.0-dev", path = "../codegen" }
|
|
rocket_http = { version = "0.5.0-dev", path = "../http" }
|
|
futures = "0.3.0"
|
|
yansi = "0.5"
|
|
log = { version = "0.4", features = ["std"] }
|
|
toml = "0.4.7"
|
|
num_cpus = "1.0"
|
|
state = "0.4.1"
|
|
time = "0.2.11"
|
|
memchr = "2" # TODO: Use pear instead.
|
|
binascii = "0.1"
|
|
pear = "0.1"
|
|
atty = "0.2"
|
|
async-trait = "0.1"
|
|
ref-cast = "1.0"
|
|
atomic = "0.4"
|
|
|
|
[dependencies.tokio]
|
|
version = "0.2.9"
|
|
features = ["fs", "io-std", "io-util", "rt-threaded", "sync", "signal"]
|
|
|
|
[build-dependencies]
|
|
yansi = "0.5"
|
|
version_check = "0.9.1"
|
|
|
|
[dev-dependencies]
|
|
# TODO: Find a way to not depend on this.
|
|
lazy_static = "1.0"
|
|
tokio = { version = "0.2.9", features = ["macros"] }
|