# 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 = "2021" name = "awc" version = "3.5.1" authors = ["Nikolay Kim "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Async HTTP and WebSocket client library" homepage = "https://actix.rs" readme = "README.md" keywords = [ "actix", "http", "framework", "async", "web", ] categories = [ "network-programming", "asynchronous", "web-programming::http-client", "web-programming::websocket", ] license = "MIT OR Apache-2.0" repository = "https://github.com/actix/actix-web" [package.metadata.cargo_check_external_types] allowed_external_types = [ "actix_codec::*", "actix_http::*", "actix_rt::*", "actix_service::*", "actix_tls::*", "bytes::*", "cookie::*", "cookie", "futures_core::*", "h2::*", "http::*", "openssl::*", "rustls::*", "serde_json::*", "serde_urlencoded::*", "serde::*", "tokio::*", ] [package.metadata.docs.rs] features = [ "cookies", "openssl", "rustls-0_20", "rustls-0_21", "rustls-0_22-webpki-roots", "rustls-0_23-webpki-roots", "compress-brotli", "compress-gzip", "compress-zstd", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "awc" path = "src/lib.rs" [[example]] name = "client" path = "examples/client.rs" required-features = ["rustls-0_23-webpki-roots"] [[test]] name = "test_client" path = "tests/test_client.rs" [[test]] name = "test_connector" path = "tests/test_connector.rs" [[test]] name = "test_rustls_client" path = "tests/test_rustls_client.rs" [[test]] name = "test_ssl_client" path = "tests/test_ssl_client.rs" [[test]] name = "test_ws" path = "tests/test_ws.rs" [[test]] name = "utils" path = "tests/utils.rs" [dependencies.actix-codec] version = "0.5" [dependencies.actix-http] version = "3.7" features = [ "http2", "ws", ] [dependencies.actix-rt] version = "2.1" default-features = false [dependencies.actix-service] version = "2" [dependencies.actix-tls] version = "3.4" features = [ "connect", "uri", ] [dependencies.actix-utils] version = "3" [dependencies.base64] version = "0.22" [dependencies.bytes] version = "1" [dependencies.cfg-if] version = "1" [dependencies.cookie] version = "0.16" features = ["percent-encode"] optional = true [dependencies.derive_more] version = "0.99.5" [dependencies.futures-core] version = "0.3.17" features = ["alloc"] default-features = false [dependencies.futures-util] version = "0.3.17" features = [ "alloc", "sink", ] default-features = false [dependencies.h2] version = "0.3.26" [dependencies.http] version = "0.2.7" [dependencies.itoa] version = "1" [dependencies.log] version = " 0.4" [dependencies.mime] version = "0.3" [dependencies.percent-encoding] version = "2.1" [dependencies.pin-project-lite] version = "0.2" [dependencies.rand] version = "0.8" [dependencies.serde] version = "1.0" [dependencies.serde_json] version = "1.0" [dependencies.serde_urlencoded] version = "0.7" [dependencies.tls-openssl] version = "0.10.55" optional = true package = "openssl" [dependencies.tls-rustls-0_20] version = "0.20" features = ["dangerous_configuration"] optional = true package = "rustls" [dependencies.tls-rustls-0_21] version = "0.21" features = ["dangerous_configuration"] optional = true package = "rustls" [dependencies.tls-rustls-0_22] version = "0.22" optional = true package = "rustls" [dependencies.tls-rustls-0_23] version = "0.23" optional = true default-features = false package = "rustls" [dependencies.tokio] version = "1.24.2" features = ["sync"] [dependencies.trust-dns-resolver] version = "0.23" optional = true [dev-dependencies.actix-http] version = "3.7" features = ["openssl"] [dev-dependencies.actix-http-test] version = "3" features = ["openssl"] [dev-dependencies.actix-server] version = "2" [dev-dependencies.actix-test] version = "0.1" features = [ "openssl", "rustls-0_23", ] [dev-dependencies.actix-tls] version = "3.4" features = [ "openssl", "rustls-0_23", ] [dev-dependencies.actix-utils] version = "3" [dev-dependencies.actix-web] version = "4" features = ["openssl"] [dev-dependencies.brotli] version = "6" [dev-dependencies.const-str] version = "0.5" [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.flate2] version = "1.0.13" [dev-dependencies.futures-util] version = "0.3.17" default-features = false [dev-dependencies.rcgen] version = "0.13" [dev-dependencies.rustls-pemfile] version = "2" [dev-dependencies.static_assertions] version = "1.1" [dev-dependencies.tls-rustls-0_23] version = "0.23" package = "rustls" [dev-dependencies.tokio] version = "1.24.2" features = [ "rt-multi-thread", "macros", ] [dev-dependencies.zstd] version = "0.13" [features] __compress = [] compress-brotli = [ "actix-http/compress-brotli", "__compress", ] compress-gzip = [ "actix-http/compress-gzip", "__compress", ] compress-zstd = [ "actix-http/compress-zstd", "__compress", ] cookies = ["dep:cookie"] dangerous-h2c = [] default = [ "compress-brotli", "compress-gzip", "compress-zstd", "cookies", ] openssl = [ "tls-openssl", "actix-tls/openssl", ] rustls = ["rustls-0_20"] rustls-0_20 = [ "tls-rustls-0_20", "actix-tls/rustls-0_20", ] rustls-0_21 = [ "tls-rustls-0_21", "actix-tls/rustls-0_21", ] rustls-0_22-native-roots = [ "tls-rustls-0_22", "actix-tls/rustls-0_22-native-roots", ] rustls-0_22-webpki-roots = [ "tls-rustls-0_22", "actix-tls/rustls-0_22-webpki-roots", ] rustls-0_23 = [ "tls-rustls-0_23", "actix-tls/rustls-0_23", ] rustls-0_23-native-roots = [ "rustls-0_23", "actix-tls/rustls-0_23-native-roots", ] rustls-0_23-webpki-roots = [ "rustls-0_23", "actix-tls/rustls-0_23-webpki-roots", ] trust-dns = ["trust-dns-resolver"] [lints.clippy] [lints.rust.future_incompatible] level = "deny" priority = 0 [lints.rust.nonstandard_style] level = "deny" priority = 0 [lints.rust.rust_2018_idioms] level = "deny" priority = 0