forked from algesten/ureq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
69 lines (63 loc) · 2.55 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "ureq"
version = "2.9.1"
authors = ["Martin Algesten <martin@algesten.se>", "Jacob Hoffman-Andrews <ureq@hoffman-andrews.com>"]
description = "Simple, safe HTTP client"
license = "MIT OR Apache-2.0"
repository = "https://github.com/algesten/ureq"
readme = "README.md"
keywords = ["web", "request", "https", "http", "client"]
categories = ["web-programming::http-client"]
edition = "2018"
[package.metadata.docs.rs]
# features = ["tls", "dep:native-tls", "json", "charset", "cookies", "socks-proxy", "gzip", "brotli", "http-interop"]
features = "all"
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["tls", "gzip"]
tls = ["dep:webpki", "dep:webpki-roots", "dep:rustls", "dep:rustls-pki-types"]
native-certs = ["dep:rustls-native-certs"]
json = ["dep:serde", "dep:serde_json"]
charset = ["dep:encoding_rs"]
cookies = ["dep:cookie", "dep:cookie_store"]
socks-proxy = ["dep:socks"]
gzip = ["dep:flate2"]
brotli = ["dep:brotli-decompressor"]
# http-interop is for http crate version 0.2 (backwards compat with last pre-release)
# Consider this feature deprecated. In time, we will remove it. Use `http-crate` instead.
http-interop = ["dep:http-02"]
# http-crate is for http crate version 1.0 (full release)
http-crate = ["dep:http"]
proxy-from-env = []
[dependencies]
base64 = "0.21"
cookie = { version = "0.17", default-features = false, optional = true }
once_cell = "1"
url = "2"
socks = { version = "0.3", optional = true }
serde = { version = "1", optional = true }
serde_json = { version = ">=1.0.97", optional = true }
encoding_rs = { version = "0.8", optional = true }
cookie_store = { version = "0.20", optional = true, default-features = false, features = ["preserve_order"] }
log = "0.4"
webpki = { package = "rustls-webpki", version = "0.102", optional = true }
webpki-roots = { version = "0.26", optional = true }
rustls = { version = "0.22.0", optional = true }
rustls-pki-types = { version = "1", optional = true }
rustls-native-certs = { version = "0.6", optional = true }
native-tls = { version = "0.2", optional = true }
flate2 = { version = "1.0.22", optional = true }
brotli-decompressor = { version = "2.3.2", optional = true }
http-02 = { package = "http", version = "0.2", optional = true }
http = { version = "1.0", optional = true }
[dev-dependencies]
serde = { version = "1", features = ["derive"] }
env_logger = "0.10"
rustls = { version = "0.22.0" }
rustls-pemfile = { version = "2.0" }
[[example]]
name = "cureq"
required-features = ["charset", "cookies", "socks-proxy", "native-tls"]
[[example]]
name = "tls_config"
required-features = ["tls", "native-tls"]