2019-03-26 04:58:01 +00:00
|
|
|
[package]
|
|
|
|
name = "awc"
|
2022-01-04 15:35:21 +00:00
|
|
|
version = "3.0.0-beta.18"
|
2021-04-02 08:40:36 +00:00
|
|
|
authors = [
|
|
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
|
|
"fakeshadow <24548779@qq.com>",
|
|
|
|
]
|
2020-10-30 02:50:53 +00:00
|
|
|
description = "Async HTTP and WebSocket client library built on the Actix ecosystem"
|
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"
|
2021-10-20 21:32:05 +00:00
|
|
|
repository = "https://github.com/actix/actix-web.git"
|
2020-07-14 02:19:56 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2019-03-26 04:58:01 +00:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "awc"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2019-03-27 01:46:06 +00:00
|
|
|
[package.metadata.docs.rs]
|
2021-02-13 15:08:43 +00:00
|
|
|
# features that docs.rs will build with
|
2021-06-19 19:21:13 +00:00
|
|
|
features = ["openssl", "rustls", "compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
|
2019-03-27 01:46:06 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
# openssl
|
2021-10-25 23:37:40 +00:00
|
|
|
openssl = ["tls-openssl", "actix-tls/openssl"]
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2019-07-31 20:02:56 +00:00
|
|
|
# rustls
|
2021-10-25 23:37:40 +00:00
|
|
|
rustls = ["tls-rustls", "actix-tls/rustls"]
|
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
|
|
|
|
2021-02-13 15:08:43 +00:00
|
|
|
# cookie parsing and cookie jar
|
2021-04-09 17:07:10 +00:00
|
|
|
cookies = ["cookie"]
|
2021-02-13 15:08:43 +00:00
|
|
|
|
2021-02-09 10:41:20 +00:00
|
|
|
# trust-dns as dns resolver
|
2021-10-25 23:37:40 +00:00
|
|
|
trust-dns = ["trust-dns-resolver"]
|
2021-02-09 10:41:20 +00:00
|
|
|
|
2021-06-19 19:21:13 +00:00
|
|
|
# Internal (PRIVATE!) features used to aid testing and cheking feature status.
|
|
|
|
# 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]
|
2021-11-16 22:41:24 +00:00
|
|
|
actix-codec = "0.4.1"
|
2021-04-16 19:28:21 +00:00
|
|
|
actix-service = "2.0.0"
|
2022-01-04 15:34:52 +00:00
|
|
|
actix-http = "3.0.0-beta.18"
|
2021-02-28 18:17:08 +00:00
|
|
|
actix-rt = { version = "2.1", default-features = false }
|
2021-12-26 21:24:03 +00:00
|
|
|
actix-tls = { version = "3.0.0", features = ["connect", "uri"] }
|
2021-10-25 23:37:40 +00:00
|
|
|
actix-utils = "3.0.0"
|
2019-11-19 03:55:17 +00:00
|
|
|
|
2021-10-25 23:37:40 +00:00
|
|
|
ahash = "0.7"
|
2020-10-19 17:24:22 +00:00
|
|
|
base64 = "0.13"
|
2021-01-03 23:47:04 +00:00
|
|
|
bytes = "1"
|
2021-06-19 19:21:13 +00:00
|
|
|
cfg-if = "1"
|
2021-01-07 20:02:08 +00:00
|
|
|
derive_more = "0.99.5"
|
2021-12-16 22:26:45 +00:00
|
|
|
futures-core = { version = "0.3.7", default-features = false, features = ["alloc"] }
|
|
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["alloc", "sink"] }
|
2021-12-10 22:13:12 +00:00
|
|
|
h2 = "0.3.9"
|
2021-11-15 04:03:33 +00:00
|
|
|
http = "0.2.5"
|
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"
|
2021-12-27 18:54:10 +00:00
|
|
|
tokio = { version = "1.8.4", 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
|
|
|
|
2021-10-20 01:00:11 +00:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10.9", optional = true }
|
|
|
|
tls-rustls = { package = "rustls", version = "0.20.0", optional = true, features = ["dangerous_configuration"] }
|
2019-03-26 04:58:01 +00:00
|
|
|
|
2021-10-25 23:37:40 +00:00
|
|
|
trust-dns-resolver = { version = "0.20.0", optional = true }
|
|
|
|
|
2019-03-26 04:58:01 +00:00
|
|
|
[dev-dependencies]
|
2022-01-04 15:34:52 +00:00
|
|
|
actix-http = { version = "3.0.0-beta.18", features = ["openssl"] }
|
2022-01-04 15:37:33 +00:00
|
|
|
actix-http-test = { version = "3.0.0-beta.11", features = ["openssl"] }
|
2021-12-27 18:45:31 +00:00
|
|
|
actix-server = "2.0.0-rc.2"
|
2022-01-04 15:37:48 +00:00
|
|
|
actix-test = { version = "0.1.0-beta.11", features = ["openssl", "rustls"] }
|
2021-12-26 21:24:03 +00:00
|
|
|
actix-tls = { version = "3.0.0", features = ["openssl", "rustls"] }
|
2021-12-11 00:30:12 +00:00
|
|
|
actix-utils = "3.0.0"
|
2022-01-14 20:00:26 +00:00
|
|
|
actix-web = { version = "4.0.0-beta.20", features = ["openssl"] }
|
2021-01-17 05:19:32 +00:00
|
|
|
|
2022-01-15 14:03:16 +00:00
|
|
|
brotli = "3.3.3"
|
2022-01-03 18:46:04 +00:00
|
|
|
const-str = "0.3"
|
2021-11-16 23:07:08 +00:00
|
|
|
env_logger = "0.9"
|
2019-12-12 09:08:08 +00:00
|
|
|
flate2 = "1.0.13"
|
2021-01-03 23:47:04 +00:00
|
|
|
futures-util = { version = "0.3.7", default-features = false }
|
2021-12-04 19:40:47 +00:00
|
|
|
static_assertions = "1.1"
|
2021-01-17 05:19:32 +00:00
|
|
|
rcgen = "0.8"
|
2021-10-20 01:00:11 +00:00
|
|
|
rustls-pemfile = "0.2"
|
2022-01-03 18:46:04 +00:00
|
|
|
zstd = "0.9"
|
2021-04-02 07:26:59 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "client"
|
|
|
|
required-features = ["rustls"]
|