Make the blocking API an optional feature (default off)
This commit is contained in:
12
Cargo.toml
12
Cargo.toml
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user