1 | [package] |
2 | name = "ureq" |
3 | version = "2.9.6" |
4 | authors = ["Martin Algesten <martin@algesten.se>" , "Jacob Hoffman-Andrews <ureq@hoffman-andrews.com>" ] |
5 | description = "Simple, safe HTTP client" |
6 | license = "MIT OR Apache-2.0" |
7 | repository = "https://github.com/algesten/ureq" |
8 | readme = "README.md" |
9 | keywords = ["web" , "request" , "https" , "http" , "client" ] |
10 | categories = ["web-programming::http-client" ] |
11 | edition = "2018" |
12 | exclude = ["/cargo_deny.sh" , "/deny.toml" , "/test.sh" ] |
13 | |
14 | |
15 | # MSRV |
16 | rust-version = "1.61" |
17 | |
18 | [package.metadata.docs.rs] |
19 | features = ["tls" , "native-tls" , "json" , "charset" , "cookies" , "socks-proxy" , "gzip" , "brotli" , "http-interop" ] |
20 | rustdoc-args = ["--cfg" , "docsrs" ] |
21 | |
22 | [features] |
23 | default = ["tls" , "gzip" ] |
24 | tls = ["dep:webpki" , "dep:webpki-roots" , "dep:rustls" , "dep:rustls-pki-types" ] |
25 | native-certs = ["dep:rustls-native-certs" ] |
26 | native-tls = ["dep:native-tls" ] |
27 | json = ["dep:serde" , "dep:serde_json" ] |
28 | charset = ["dep:encoding_rs" ] |
29 | cookies = ["dep:cookie" , "dep:cookie_store" ] |
30 | socks-proxy = ["dep:socks" ] |
31 | gzip = ["dep:flate2" ] |
32 | brotli = ["dep:brotli-decompressor" ] |
33 | # http-interop is for http crate version 0.2 (backwards compat with last pre-release) |
34 | # Consider this feature deprecated. In time, we will remove it. Use `http-crate` instead. |
35 | http-interop = ["dep:http-02" ] |
36 | # http-crate is for http crate version 1.0 (full release) |
37 | http-crate = ["dep:http" ] |
38 | proxy-from-env = [] |
39 | # Doc tests require hootbin. |
40 | testdeps = ["dep:hootbin" ] |
41 | |
42 | [dependencies] |
43 | base64 = "0.21" |
44 | cookie = { version = "0.18" , default-features = false, optional = true } |
45 | once_cell = "1" |
46 | url = "2" |
47 | socks = { version = "0.3" , optional = true } |
48 | serde = { version = "1" , optional = true } |
49 | serde_json = { version = ">=1.0.97" , optional = true } |
50 | encoding_rs = { version = "0.8" , optional = true } |
51 | cookie_store = { version = "0.21" , optional = true, default-features = false, features = ["preserve_order" ] } |
52 | log = "0.4" |
53 | webpki = { package = "rustls-webpki" , version = "0.102" , optional = true } |
54 | webpki-roots = { version = "0.26" , optional = true } |
55 | rustls = { version = "0.22.0" , optional = true } |
56 | rustls-pki-types = { version = "1" , optional = true } |
57 | rustls-native-certs = { version = "0.7" , optional = true } |
58 | native-tls = { version = "0.2" , optional = true } |
59 | flate2 = { version = "1.0.22" , optional = true } |
60 | brotli-decompressor = { version = "2.3.2" , optional = true } |
61 | http-02 = { package = "http" , version = "0.2" , optional = true } |
62 | http = { version = "1.0" , optional = true } |
63 | |
64 | # This can't be in dev-dependencies due to doc tests. |
65 | hootbin = { version = "0.1.5" , optional = true } |
66 | |
67 | [dev-dependencies] |
68 | serde = { version = "1" , features = ["derive" ] } |
69 | env_logger = "<=0.9" |
70 | rustls = { version = "0.22.0" } |
71 | rustls-pemfile = { version = "2.0" } |
72 | |
73 | [[example]] |
74 | name = "cureq" |
75 | required-features = ["charset" , "cookies" , "socks-proxy" , "native-tls" ] |
76 | |
77 | [[example]] |
78 | name = "tls_config" |
79 | required-features = ["tls" , "native-tls" ] |
80 | |