Rocket/lib/Cargo.toml

52 lines
1.2 KiB
TOML
Raw Normal View History

[package]
name = "rocket"
2017-06-02 05:09:54 +00:00
version = "0.2.8"
authors = ["Sergio Benitez <sb@sergio.bz>"]
2016-12-23 11:36:26 +00:00
description = """
2017-02-06 04:21:57 +00:00
Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
2016-12-23 11:36:26 +00:00
"""
documentation = "https://api.rocket.rs/rocket/"
2016-12-23 11:36:26 +00:00
homepage = "https://rocket.rs"
repository = "https://github.com/SergioBenitez/Rocket"
readme = "../README.md"
keywords = ["rocket", "web", "framework", "server"]
license = "MIT/Apache-2.0"
build = "build.rs"
2017-01-31 10:01:51 +00:00
categories = ["web-programming::http-server"]
[features]
tls = ["rustls", "hyper-rustls"]
[dependencies]
yansi = "0.3"
log = "0.3"
url = "1"
toml = "0.4"
2017-01-12 10:38:14 +00:00
num_cpus = "1"
Remove Session in favor of private cookies. New testing API. Sessions -------- This commit removes the `Session` type in favor of methods on the `Cookies` types that allow for adding, removing, and getting private (signed and encrypted) cookies. These methods provide a superset of the functionality of `Session` while also being a minimal addition to the existing API. They can be used to implement the previous `Session` type as well as other forms of session storage. The new methods are: * Cookie::add_private(&mut self, Cookie) * Cookie::remove_private(&mut self, Cookie) * Cookie::get_private(&self, &str) Resolves #20 Testing ------- This commit removes the `rocket::testing` module. It adds the `rocket::local` module which provides a `Client` type for local dispatching of requests against a `Rocket` instance. This `local` package subsumes the previous `testing` package. Rocket Examples --------------- The `forms`, `optional_result`, and `hello_alt_methods` examples have been removed. The following example have been renamed: * extended_validation -> form_validation * hello_ranks -> ranking * from_request -> request_guard * hello_tls -> tls Other Changes ------------- This commit also includes the following smaller changes: * Config::{development, staging, production} constructors have been added for easier creation of default `Config` structures. * The `Config` type is exported from the root. * `Request` implements `Clone` and `Debug`. * `Request::new` is no longer exported. * A `Response::body_bytes` method was added to easily retrieve a response's body as a `Vec<u8>`.
2017-06-06 20:41:04 +00:00
state = "0.2.2"
time = "0.1"
memchr = "1"
base64 = "0.6"
2017-06-01 00:28:12 +00:00
smallvec = "0.4"
pear = "0.0.8"
pear_codegen = "0.0.8"
2017-06-17 03:32:20 +00:00
rustls = { version = "0.9.0", optional = true }
cookie = { version = "0.9.1", features = ["percent-encode", "secure"] }
Remove Session in favor of private cookies. New testing API. Sessions -------- This commit removes the `Session` type in favor of methods on the `Cookies` types that allow for adding, removing, and getting private (signed and encrypted) cookies. These methods provide a superset of the functionality of `Session` while also being a minimal addition to the existing API. They can be used to implement the previous `Session` type as well as other forms of session storage. The new methods are: * Cookie::add_private(&mut self, Cookie) * Cookie::remove_private(&mut self, Cookie) * Cookie::get_private(&self, &str) Resolves #20 Testing ------- This commit removes the `rocket::testing` module. It adds the `rocket::local` module which provides a `Client` type for local dispatching of requests against a `Rocket` instance. This `local` package subsumes the previous `testing` package. Rocket Examples --------------- The `forms`, `optional_result`, and `hello_alt_methods` examples have been removed. The following example have been renamed: * extended_validation -> form_validation * hello_ranks -> ranking * from_request -> request_guard * hello_tls -> tls Other Changes ------------- This commit also includes the following smaller changes: * Config::{development, staging, production} constructors have been added for easier creation of default `Config` structures. * The `Config` type is exported from the root. * `Request` implements `Clone` and `Debug`. * `Request::new` is no longer exported. * A `Response::body_bytes` method was added to easily retrieve a response's body as a `Vec<u8>`.
2017-06-06 20:41:04 +00:00
hyper = { version = "0.10.11", default-features = false }
ordermap = "0.2"
[dependencies.hyper-rustls]
git = "https://github.com/SergioBenitez/hyper-rustls"
2017-06-17 03:32:20 +00:00
rev = "ef1e8c"
default-features = false
features = ["server"]
optional = true
[dev-dependencies]
2016-12-23 11:36:26 +00:00
lazy_static = "0.2"
2017-06-02 05:09:54 +00:00
rocket_codegen = { version = "0.2.8", path = "../codegen" }
[build-dependencies]
yansi = "0.3"
version_check = "0.1.2"