Make the blocking API an optional feature (default off)

This commit is contained in:
Sean McArthur
2019-09-17 15:06:10 -07:00
parent 0a87d3d7da
commit 7e3c1bc461
11 changed files with 71 additions and 49 deletions

View File

@@ -85,6 +85,8 @@ default-tls-vendored = ["default-tls", "native-tls/vendored"]
rustls-tls = ["hyper-rustls", "tokio-rustls", "webpki-roots", "rustls", "tls"]
blocking = []
cookies = ["cookie_crate", "cookie_store"]
#trust-dns = ["trust-dns-resolver"]
@@ -92,6 +94,16 @@ cookies = ["cookie_crate", "cookie_store"]
[target.'cfg(windows)'.dependencies]
winreg = "0.6"
[[example]]
name = "blocking"
path = "examples/blocking.rs"
required-features = ["blocking"]
[[test]]
name = "blocking"
path = "tests/blocking.rs"
required-features = ["blocking"]
[[test]]
name = "cookie"
path = "tests/cookie.rs"