# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2018" name = "attohttp" version = "0.26.2" authors = ["Simon Bernier St-Pierre "] description = "Small and lightweight HTTP client" homepage = "https://github.com/sbstp/attohttpc" documentation = "https://docs.rs/attohttpc" readme = "README.md" keywords = [ "http", "https", "client", "request", "response", ] categories = [ "network-programming", "web-programming", "web-programming::http-client", ] license = "MPL-2.0" repository = "https://github.com/sbstp/attohttpc" [package.metadata.docs.rs] all-features = true [[example]] name = "cat" path = "examples/cat.rs" required-features = ["default"] [[example]] name = "imdb" path = "examples/imdb.rs" required-features = ["tls-native"] [[example]] name = "nhlapi" path = "examples/nhlapi.rs" required-features = ["tls-native"] [[example]] name = "post_json" path = "examples/post_json.rs" required-features = ["json"] [[example]] name = "post" path = "examples/post.rs" required-features = ["tls-native"] [[example]] name = "charset" path = "examples/charset.rs" required-features = ["charsets"] [[example]] name = "multipart" path = "examples/multipart.rs" required-features = ["multipart-form"] [[test]] name = "test_invalid_certs" path = "tests/test_invalid_certs.rs" required-features = ["tls-native"] [[test]] name = "test_multipart" path = "tests/test_multipart.rs" required-features = ["multipart-form"] [dependencies.base64] version = "0.21.2" optional = true [dependencies.encoding_rs] version = "0.8.31" optional = true [dependencies.encoding_rs_io] version = "0.1.7" optional = true [dependencies.flate2] version = "1.0.24" optional = true default-features = false [dependencies.http] version = "0.2.8" [dependencies.log] version = "0.4.17" [dependencies.mime] version = "0.3.16" optional = true [dependencies.multipart] version = "0.18.0" features = ["client"] optional = true default-features = false [dependencies.native-tls] version = "0.2.10" optional = true [dependencies.rustls-native-certs] version = "0.6" optional = true [dependencies.rustls-opt-dep] version = "0.21.0" features = ["dangerous_configuration"] optional = true package = "rustls" [dependencies.serde] version = "1.0.143" optional = true [dependencies.serde_json] version = "1.0.83" optional = true [dependencies.serde_urlencoded] version = "0.7.1" optional = true [dependencies.url] version = "2.2.2" [dependencies.webpki-roots] version = "0.25.1" optional = true [dev-dependencies.anyhow] version = "1.0.61" [dev-dependencies.env_logger] version = "0.10.0" [dev-dependencies.futures] version = "0.3.23" [dev-dependencies.futures-util] version = "0.3.23" [dev-dependencies.hyper] version = "0.14.20" [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.multipart] version = "0.18.0" features = ["server"] default-features = false [dev-dependencies.rustls-pemfile] version = "1.0.3" [dev-dependencies.tokio] version = "1.20.1" features = ["full"] [dev-dependencies.tokio-rustls] version = "0.24.1" [dev-dependencies.tokio-stream] version = "0.1.9" features = ["net"] [dev-dependencies.warp] version = "0.3.2" [features] __rustls = ["rustls-opt-dep"] basic-auth = ["base64"] charsets = [ "encoding_rs", "encoding_rs_io", ] compress = ["flate2/default"] compress-zlib = ["flate2/zlib"] compress-zlib-ng = ["flate2/zlib-ng"] default = [ "compress", "tls-native", ] form = [ "serde", "serde_urlencoded", ] json = [ "serde", "serde_json", ] multipart-form = [ "multipart", "mime", ] rustls = ["tls-rustls-webpki-roots"] tls = ["tls-native"] tls-native = ["native-tls"] tls-native-vendored = ["native-tls/vendored"] tls-rustls = ["tls-rustls-webpki-roots"] tls-rustls-native-roots = [ "__rustls", "rustls-native-certs", ] tls-rustls-webpki-roots = [ "__rustls", "webpki-roots", ] tls-vendored = ["tls-native-vendored"]