| 1 | [package] |
| 2 | name = "ureq" |
| 3 | version = "2.12.1" |
| 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.71" |
| 17 | |
| 18 | [package.metadata.docs.rs] |
| 19 | features = ["tls" , "native-tls" , "json" , "charset" , "cookies" , "socks-proxy" , "gzip" , "brotli" , "http-interop" , "http-crate" ] |
| 20 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 21 | |
| 22 | [features] |
| 23 | default = ["tls" , "gzip" ] |
| 24 | tls = ["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.22" |
| 44 | cookie = { version = "0.18" , default-features = false, optional = true } |
| 45 | once_cell = "1" |
| 46 | socks = { version = "0.3" , optional = true } |
| 47 | serde = { version = "1" , optional = true } |
| 48 | serde_json = { version = "1.0.97" , optional = true } |
| 49 | encoding_rs = { version = "0.8" , optional = true } |
| 50 | cookie_store = { version = "0.21.1" , optional = true, default-features = false, features = ["preserve_order" , "serde_json" ] } |
| 51 | log = "0.4" |
| 52 | webpki-roots = { version = "0.26" , optional = true } |
| 53 | rustls-pki-types = { version = "1" , optional = true } |
| 54 | rustls-native-certs = { version = "0.7" , optional = true } |
| 55 | native-tls = { version = "0.2" , optional = true } |
| 56 | flate2 = { version = "1.0.22" , optional = true } |
| 57 | brotli-decompressor = { version = "4.0.0" , optional = true } |
| 58 | http-02 = { package = "http" , version = "0.2" , optional = true } |
| 59 | http = { version = "1.1" , optional = true } |
| 60 | url = "2.5.0" |
| 61 | rustls = { version = "0.23.19" , optional = true, default-features = false, features = ["ring" , "logging" , "std" , "tls12" ] } |
| 62 | |
| 63 | # This can't be in dev-dependencies due to doc tests. |
| 64 | hootbin = { version = "0.1.5" , optional = true } |
| 65 | |
| 66 | [dev-dependencies] |
| 67 | env_logger = { version = "<=0.9" , default-features = false, features = ["humantime" ] } |
| 68 | serde = { version = "1" , features = ["derive" ] } |
| 69 | rustls = { version = "0.23.5" , default-features = false, features = ["std" , "ring" ] } |
| 70 | rustls-pemfile = { version = "2.0" } |
| 71 | |
| 72 | [[example]] |
| 73 | name = "cureq" |
| 74 | required-features = ["charset" , "cookies" , "socks-proxy" , "native-tls" ] |
| 75 | |
| 76 | [[example]] |
| 77 | name = "tls_config" |
| 78 | required-features = ["tls" , "native-tls" ] |
| 79 | |