2019-03-26 04:58:01 +00:00
|
|
|
[package]
|
|
|
|
name = "awc"
|
2024-08-10 03:08:38 +00:00
|
|
|
version = "3.5.1"
|
2022-10-25 15:37:04 +00:00
|
|
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
2022-03-05 23:15:33 +00:00
|
|
|
description = "Async HTTP and WebSocket client library"
|
2019-03-28 20:46:26 +00:00
|
|
|
keywords = ["actix", "http", "framework", "async", "web"]
|
2020-07-22 00:13:10 +00:00
|
|
|
categories = [
|
|
|
|
"network-programming",
|
|
|
|
"asynchronous",
|
|
|
|
"web-programming::http-client",
|
|
|
|
"web-programming::websocket",
|
|
|
|
]
|
2021-04-17 14:30:31 +00:00
|
|
|
homepage = "https://actix.rs"
|
2023-11-06 23:54:38 +00:00
|
|
|
repository = "https://github.com/actix/actix-web"
|
2020-07-14 02:19:56 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-07-02 00:09:15 +00:00
|
|
|
edition = "2021"
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2019-03-27 01:46:06 +00:00
|
|
|
[package.metadata.docs.rs]
|
2024-02-03 23:55:01 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
features = [
|
|
|
|
"cookies",
|
|
|
|
"openssl",
|
|
|
|
"rustls-0_20",
|
|
|
|
"rustls-0_21",
|
|
|
|
"rustls-0_22-webpki-roots",
|
2024-05-18 19:05:58 +00:00
|
|
|
"rustls-0_23-webpki-roots",
|
2024-02-03 23:55:01 +00:00
|
|
|
"compress-brotli",
|
|
|
|
"compress-gzip",
|
|
|
|
"compress-zstd",
|
|
|
|
]
|
2019-03-27 01:46:06 +00:00
|
|
|
|
2024-06-10 02:39:06 +00:00
|
|
|
[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::*",
|
|
|
|
]
|
|
|
|
|
2019-03-26 04:58:01 +00:00
|
|
|
[features]
|
2021-06-19 19:21:13 +00:00
|
|
|
default = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2023-08-29 00:11:11 +00:00
|
|
|
# TLS via OpenSSL
|
2021-10-25 23:37:40 +00:00
|
|
|
openssl = ["tls-openssl", "actix-tls/openssl"]
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2023-08-29 00:11:11 +00:00
|
|
|
# TLS via Rustls v0.20
|
|
|
|
rustls = ["rustls-0_20"]
|
|
|
|
# TLS via Rustls v0.20
|
|
|
|
rustls-0_20 = ["tls-rustls-0_20", "actix-tls/rustls-0_20"]
|
|
|
|
# TLS via Rustls v0.21
|
|
|
|
rustls-0_21 = ["tls-rustls-0_21", "actix-tls/rustls-0_21"]
|
2024-02-03 23:55:01 +00:00
|
|
|
# TLS via Rustls v0.22 (WebPKI roots)
|
|
|
|
rustls-0_22-webpki-roots = ["tls-rustls-0_22", "actix-tls/rustls-0_22-webpki-roots"]
|
|
|
|
# TLS via Rustls v0.22 (Native roots)
|
|
|
|
rustls-0_22-native-roots = ["tls-rustls-0_22", "actix-tls/rustls-0_22-native-roots"]
|
2024-05-18 19:05:58 +00:00
|
|
|
# TLS via Rustls v0.23
|
|
|
|
rustls-0_23 = ["tls-rustls-0_23", "actix-tls/rustls-0_23"]
|
|
|
|
# TLS via Rustls v0.23 (WebPKI roots)
|
|
|
|
rustls-0_23-webpki-roots = ["rustls-0_23", "actix-tls/rustls-0_23-webpki-roots"]
|
|
|
|
# TLS via Rustls v0.23 (Native roots)
|
|
|
|
rustls-0_23-native-roots = ["rustls-0_23", "actix-tls/rustls-0_23-native-roots"]
|
2019-07-31 20:02:56 +00:00
|
|
|
|
2021-06-19 19:21:13 +00:00
|
|
|
# Brotli algorithm content-encoding support
|
|
|
|
compress-brotli = ["actix-http/compress-brotli", "__compress"]
|
|
|
|
# Gzip and deflate algorithms content-encoding support
|
|
|
|
compress-gzip = ["actix-http/compress-gzip", "__compress"]
|
|
|
|
# Zstd algorithm content-encoding support
|
|
|
|
compress-zstd = ["actix-http/compress-zstd", "__compress"]
|
2019-03-27 01:46:06 +00:00
|
|
|
|
2023-08-29 00:11:11 +00:00
|
|
|
# Cookie parsing and cookie jar
|
2024-06-08 23:10:15 +00:00
|
|
|
cookies = ["dep:cookie"]
|
2021-02-13 15:08:43 +00:00
|
|
|
|
2023-08-29 00:11:11 +00:00
|
|
|
# Use `trust-dns-resolver` crate as DNS resolver
|
2021-10-25 23:37:40 +00:00
|
|
|
trust-dns = ["trust-dns-resolver"]
|
2021-02-09 10:41:20 +00:00
|
|
|
|
2023-08-26 23:07:11 +00:00
|
|
|
# Internal (PRIVATE!) features used to aid testing and checking feature status.
|
2021-06-19 19:21:13 +00:00
|
|
|
# Don't rely on these whatsoever. They may disappear at anytime.
|
|
|
|
__compress = []
|
|
|
|
|
2021-11-22 18:16:56 +00:00
|
|
|
# Enable dangerous feature for testing and local network usage:
|
|
|
|
# - HTTP/2 over TCP(No Tls).
|
|
|
|
# DO NOT enable this over any internet use case.
|
|
|
|
dangerous-h2c = []
|
|
|
|
|
2019-03-26 04:58:01 +00:00
|
|
|
[dependencies]
|
2022-02-15 20:49:10 +00:00
|
|
|
actix-codec = "0.5"
|
2022-03-08 16:51:40 +00:00
|
|
|
actix-service = "2"
|
2024-05-19 09:14:30 +00:00
|
|
|
actix-http = { version = "3.7", features = ["http2", "ws"] }
|
2021-02-28 18:17:08 +00:00
|
|
|
actix-rt = { version = "2.1", default-features = false }
|
2024-05-19 10:55:12 +00:00
|
|
|
actix-tls = { version = "3.4", features = ["connect", "uri"] }
|
2022-03-08 16:51:40 +00:00
|
|
|
actix-utils = "3"
|
2019-11-19 03:55:17 +00:00
|
|
|
|
2024-03-03 22:18:29 +00:00
|
|
|
base64 = "0.22"
|
2021-01-03 23:47:04 +00:00
|
|
|
bytes = "1"
|
2021-06-19 19:21:13 +00:00
|
|
|
cfg-if = "1"
|
2024-08-18 14:17:03 +00:00
|
|
|
derive_more = { version = "1", features = ["display", "error", "from"] }
|
2022-12-18 01:34:48 +00:00
|
|
|
futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] }
|
|
|
|
futures-util = { version = "0.3.17", default-features = false, features = ["alloc", "sink"] }
|
2024-06-09 03:51:53 +00:00
|
|
|
h2 = "0.3.26"
|
2023-03-02 16:21:13 +00:00
|
|
|
http = "0.2.7"
|
2021-12-22 08:34:48 +00:00
|
|
|
itoa = "1"
|
2019-03-26 04:58:01 +00:00
|
|
|
log =" 0.4"
|
2019-04-01 18:51:18 +00:00
|
|
|
mime = "0.3"
|
2019-08-13 17:48:11 +00:00
|
|
|
percent-encoding = "2.1"
|
2021-02-28 18:17:08 +00:00
|
|
|
pin-project-lite = "0.2"
|
2020-12-22 23:45:31 +00:00
|
|
|
rand = "0.8"
|
2019-03-26 04:58:01 +00:00
|
|
|
serde = "1.0"
|
|
|
|
serde_json = "1.0"
|
2020-11-05 16:36:15 +00:00
|
|
|
serde_urlencoded = "0.7"
|
2023-02-26 03:47:25 +00:00
|
|
|
tokio = { version = "1.24.2", features = ["sync"] }
|
2021-10-25 23:37:40 +00:00
|
|
|
|
2021-12-29 10:03:25 +00:00
|
|
|
cookie = { version = "0.16", features = ["percent-encode"], optional = true }
|
2021-10-25 23:37:40 +00:00
|
|
|
|
2023-07-02 00:09:15 +00:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10.55", optional = true }
|
2023-08-29 00:11:11 +00:00
|
|
|
tls-rustls-0_20 = { package = "rustls", version = "0.20", optional = true, features = ["dangerous_configuration"] }
|
|
|
|
tls-rustls-0_21 = { package = "rustls", version = "0.21", optional = true, features = ["dangerous_configuration"] }
|
2024-02-03 23:55:01 +00:00
|
|
|
tls-rustls-0_22 = { package = "rustls", version = "0.22", optional = true }
|
2024-05-18 19:05:58 +00:00
|
|
|
tls-rustls-0_23 = { package = "rustls", version = "0.23", optional = true, default-features = false }
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2023-09-03 04:40:41 +00:00
|
|
|
trust-dns-resolver = { version = "0.23", optional = true }
|
2021-10-25 23:37:40 +00:00
|
|
|
|
2019-03-26 04:58:01 +00:00
|
|
|
[dev-dependencies]
|
2024-05-19 09:14:30 +00:00
|
|
|
actix-http = { version = "3.7", features = ["openssl"] }
|
2022-07-24 01:11:21 +00:00
|
|
|
actix-http-test = { version = "3", features = ["openssl"] }
|
2022-01-19 16:58:11 +00:00
|
|
|
actix-server = "2"
|
2024-05-18 19:05:58 +00:00
|
|
|
actix-test = { version = "0.1", features = ["openssl", "rustls-0_23"] }
|
2024-05-19 10:55:12 +00:00
|
|
|
actix-tls = { version = "3.4", features = ["openssl", "rustls-0_23"] }
|
2022-03-08 16:51:40 +00:00
|
|
|
actix-utils = "3"
|
|
|
|
actix-web = { version = "4", features = ["openssl"] }
|
2021-01-17 05:19:32 +00:00
|
|
|
|
2024-10-07 20:40:14 +00:00
|
|
|
brotli = "7"
|
2023-07-02 00:09:15 +00:00
|
|
|
const-str = "0.5"
|
2024-03-03 23:43:54 +00:00
|
|
|
env_logger = "0.11"
|
2019-12-12 09:08:08 +00:00
|
|
|
flate2 = "1.0.13"
|
2022-12-18 01:34:48 +00:00
|
|
|
futures-util = { version = "0.3.17", default-features = false }
|
2021-12-04 19:40:47 +00:00
|
|
|
static_assertions = "1.1"
|
2024-05-19 09:12:32 +00:00
|
|
|
rcgen = "0.13"
|
2024-02-03 23:55:01 +00:00
|
|
|
rustls-pemfile = "2"
|
2023-02-26 03:47:25 +00:00
|
|
|
tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros"] }
|
2023-10-30 01:18:45 +00:00
|
|
|
zstd = "0.13"
|
2024-06-10 02:39:06 +00:00
|
|
|
tls-rustls-0_23 = { package = "rustls", version = "0.23" } # add rustls 0.23 with default features to make aws_lc_rs work in tests
|
2021-04-02 07:26:59 +00:00
|
|
|
|
2024-07-07 02:54:00 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2021-04-02 07:26:59 +00:00
|
|
|
[[example]]
|
|
|
|
name = "client"
|
2024-05-18 19:05:58 +00:00
|
|
|
required-features = ["rustls-0_23-webpki-roots"]
|