2019-03-26 05:58:01 +01:00
|
|
|
[package]
|
|
|
|
name = "awc"
|
2024-02-04 01:32:57 +01:00
|
|
|
version = "3.4.0"
|
2022-10-25 17:37:04 +02:00
|
|
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
2022-03-06 00:15:33 +01:00
|
|
|
description = "Async HTTP and WebSocket client library"
|
2019-03-28 21:46:26 +01:00
|
|
|
keywords = ["actix", "http", "framework", "async", "web"]
|
2020-07-22 02:13:10 +02:00
|
|
|
categories = [
|
|
|
|
"network-programming",
|
|
|
|
"asynchronous",
|
|
|
|
"web-programming::http-client",
|
|
|
|
"web-programming::websocket",
|
|
|
|
]
|
2021-04-17 16:30:31 +02:00
|
|
|
homepage = "https://actix.rs"
|
2023-11-07 00:54:38 +01:00
|
|
|
repository = "https://github.com/actix/actix-web"
|
2020-07-14 04:19:56 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-07-02 02:09:15 +02:00
|
|
|
edition = "2021"
|
2019-03-26 05:58:01 +01:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "awc"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2019-03-27 02:46:06 +01:00
|
|
|
[package.metadata.docs.rs]
|
2024-02-04 00:55:01 +01:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
features = [
|
|
|
|
"cookies",
|
|
|
|
"openssl",
|
|
|
|
"rustls-0_20",
|
|
|
|
"rustls-0_21",
|
|
|
|
"rustls-0_22-webpki-roots",
|
|
|
|
"compress-brotli",
|
|
|
|
"compress-gzip",
|
|
|
|
"compress-zstd",
|
|
|
|
]
|
2019-03-27 02:46:06 +01:00
|
|
|
|
2019-03-26 05:58:01 +01:00
|
|
|
[features]
|
2021-06-19 21:21:13 +02:00
|
|
|
default = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
|
2019-03-26 05:58:01 +01:00
|
|
|
|
2023-08-29 02:11:11 +02:00
|
|
|
# TLS via OpenSSL
|
2021-10-26 01:37:40 +02:00
|
|
|
openssl = ["tls-openssl", "actix-tls/openssl"]
|
2019-03-26 05:58:01 +01:00
|
|
|
|
2023-08-29 02:11:11 +02: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-04 00:55:01 +01: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"]
|
2019-07-31 22:02:56 +02:00
|
|
|
|
2021-06-19 21:21:13 +02: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 02:46:06 +01:00
|
|
|
|
2023-08-29 02:11:11 +02:00
|
|
|
# Cookie parsing and cookie jar
|
2021-04-09 19:07:10 +02:00
|
|
|
cookies = ["cookie"]
|
2021-02-13 16:08:43 +01:00
|
|
|
|
2023-08-29 02:11:11 +02:00
|
|
|
# Use `trust-dns-resolver` crate as DNS resolver
|
2021-10-26 01:37:40 +02:00
|
|
|
trust-dns = ["trust-dns-resolver"]
|
2021-02-09 11:41:20 +01:00
|
|
|
|
2023-08-27 01:07:11 +02:00
|
|
|
# Internal (PRIVATE!) features used to aid testing and checking feature status.
|
2021-06-19 21:21:13 +02:00
|
|
|
# Don't rely on these whatsoever. They may disappear at anytime.
|
|
|
|
__compress = []
|
|
|
|
|
2021-11-22 19:16:56 +01: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 05:58:01 +01:00
|
|
|
[dependencies]
|
2022-02-15 21:49:10 +01:00
|
|
|
actix-codec = "0.5"
|
2022-03-08 17:51:40 +01:00
|
|
|
actix-service = "2"
|
2024-02-04 01:31:14 +01:00
|
|
|
actix-http = { version = "3.6", features = ["http2", "ws"] }
|
2021-02-28 19:17:08 +01:00
|
|
|
actix-rt = { version = "2.1", default-features = false }
|
2024-02-04 00:55:01 +01:00
|
|
|
actix-tls = { version = "3.3", features = ["connect", "uri"] }
|
2022-03-08 17:51:40 +01:00
|
|
|
actix-utils = "3"
|
2019-11-19 04:55:17 +01:00
|
|
|
|
2023-01-21 02:36:08 +01:00
|
|
|
base64 = "0.21"
|
2021-01-04 00:47:04 +01:00
|
|
|
bytes = "1"
|
2021-06-19 21:21:13 +02:00
|
|
|
cfg-if = "1"
|
2021-01-07 21:02:08 +01:00
|
|
|
derive_more = "0.99.5"
|
2022-12-18 02:34:48 +01: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-02-03 17:20:07 +01:00
|
|
|
h2 = "0.3.24"
|
2023-03-02 17:21:13 +01:00
|
|
|
http = "0.2.7"
|
2021-12-22 09:34:48 +01:00
|
|
|
itoa = "1"
|
2019-03-26 05:58:01 +01:00
|
|
|
log =" 0.4"
|
2019-04-01 20:51:18 +02:00
|
|
|
mime = "0.3"
|
2019-08-13 19:48:11 +02:00
|
|
|
percent-encoding = "2.1"
|
2021-02-28 19:17:08 +01:00
|
|
|
pin-project-lite = "0.2"
|
2020-12-23 00:45:31 +01:00
|
|
|
rand = "0.8"
|
2019-03-26 05:58:01 +01:00
|
|
|
serde = "1.0"
|
|
|
|
serde_json = "1.0"
|
2020-11-05 17:36:15 +01:00
|
|
|
serde_urlencoded = "0.7"
|
2023-02-26 04:47:25 +01:00
|
|
|
tokio = { version = "1.24.2", features = ["sync"] }
|
2021-10-26 01:37:40 +02:00
|
|
|
|
2021-12-29 11:03:25 +01:00
|
|
|
cookie = { version = "0.16", features = ["percent-encode"], optional = true }
|
2021-10-26 01:37:40 +02:00
|
|
|
|
2023-07-02 02:09:15 +02:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10.55", optional = true }
|
2023-08-29 02:11:11 +02: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-04 00:55:01 +01:00
|
|
|
tls-rustls-0_22 = { package = "rustls", version = "0.22", optional = true }
|
2019-03-26 05:58:01 +01:00
|
|
|
|
2023-09-03 06:40:41 +02:00
|
|
|
trust-dns-resolver = { version = "0.23", optional = true }
|
2021-10-26 01:37:40 +02:00
|
|
|
|
2019-03-26 05:58:01 +01:00
|
|
|
[dev-dependencies]
|
2024-02-04 01:31:14 +01:00
|
|
|
actix-http = { version = "3.6", features = ["openssl"] }
|
2022-07-24 03:11:21 +02:00
|
|
|
actix-http-test = { version = "3", features = ["openssl"] }
|
2022-01-19 17:58:11 +01:00
|
|
|
actix-server = "2"
|
2024-02-04 00:55:01 +01:00
|
|
|
actix-test = { version = "0.1", features = ["openssl", "rustls-0_22"] }
|
|
|
|
actix-tls = { version = "3.3", features = ["openssl", "rustls-0_22"] }
|
2022-03-08 17:51:40 +01:00
|
|
|
actix-utils = "3"
|
|
|
|
actix-web = { version = "4", features = ["openssl"] }
|
2021-01-17 06:19:32 +01:00
|
|
|
|
2022-01-15 15:03:16 +01:00
|
|
|
brotli = "3.3.3"
|
2023-07-02 02:09:15 +02:00
|
|
|
const-str = "0.5"
|
|
|
|
env_logger = "0.10"
|
2019-12-12 10:08:08 +01:00
|
|
|
flate2 = "1.0.13"
|
2022-12-18 02:34:48 +01:00
|
|
|
futures-util = { version = "0.3.17", default-features = false }
|
2021-12-04 20:40:47 +01:00
|
|
|
static_assertions = "1.1"
|
2024-02-04 00:55:01 +01:00
|
|
|
rcgen = "0.12"
|
|
|
|
rustls-pemfile = "2"
|
2023-02-26 04:47:25 +01:00
|
|
|
tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros"] }
|
2023-10-30 02:18:45 +01:00
|
|
|
zstd = "0.13"
|
2021-04-02 09:26:59 +02:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "client"
|
2024-02-04 00:55:01 +01:00
|
|
|
required-features = ["rustls-0_22-webpki-roots"]
|