Files
yup-oauth2/Cargo.toml
Jamie Turner 20810e32d5 Add a no-openssl feature.
Recently, commits were made to remove support for using rustls/ring
in lieu of OpenSSL to avoid having to add those as dependencies in
environments where OpenSSL already exists.

However, yup-oauth2 is being used in some environments where
*OpenSSL* doesn't exist. So, retaining the option to build
it with an openssl-free stack is key.

Note, the change to hyper-native-tls is fine and actually
unrelated, because this is often happening on Windows or
Mac enviornments, where the stack that will link to is
*not* necessarily OpenSSL either.

For example, the particular breakage that prompted this
CR is a build of yup-oauth2 on iOS. In that environment,
hyper-native-tls uses Apple's Security Framework,
but OpenSSL libraries are not actually present on all
devices/simulator environments. So a link against
a mix of Security Framework and rustls make sense,
there.

Also, update to a newer version of rustls/ring while we're at it.
2019-01-04 12:54:08 -08:00

35 lines
846 B
TOML

[package]
name = "yup-oauth2"
version = "1.0.9"
authors = ["Sebastian Thiel <byronimo@gmail.com>", "Lewin Bormann <lbo@spheniscida.de>"]
repository = "https://github.com/dermesser/yup-oauth2"
description = "An oauth2 implementation, providing the 'device', 'service account' and 'installed' authorization flows"
documentation = "https://docs.rs/yup-oauth2/"
keywords = ["google", "oauth", "v2"]
license = "MIT OR Apache-2.0"
edition = "2018"
[dependencies]
base64 = "0.9"
chrono = "0.4"
hyper = "0.10.2"
hyper-native-tls = "0.3"
itertools = "0.7"
log = "0.3"
openssl = {version = "0.10", optional = true}
rustls = {version = "0.14", optional = true}
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
url = "1"
[features]
default = ["openssl"]
no-openssl = ["rustls"]
[dev-dependencies]
getopts = "0.2"
open = "1.1"
yup-hyper-mock = "2.0"