2019-03-26 05:58:01 +01:00
|
|
|
[package]
|
|
|
|
name = "awc"
|
2021-06-26 17:33:36 +02:00
|
|
|
version = "3.0.0-beta.7"
|
2021-04-02 10:40:36 +02:00
|
|
|
authors = [
|
|
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
|
|
"fakeshadow <24548779@qq.com>",
|
|
|
|
]
|
2020-10-30 03:50:53 +01:00
|
|
|
description = "Async HTTP and WebSocket client library built on the Actix ecosystem"
|
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"
|
|
|
|
repository = "https://github.com/actix/actix-web"
|
2020-07-14 04:19:56 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2019-03-26 05:58:01 +01:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "awc"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2019-03-27 02:46:06 +01:00
|
|
|
[package.metadata.docs.rs]
|
2021-02-13 16:08:43 +01:00
|
|
|
# features that docs.rs will build with
|
2021-06-19 21:21:13 +02:00
|
|
|
features = ["openssl", "rustls", "compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
|
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
|
|
|
|
|
|
|
# openssl
|
2021-02-07 04:54:58 +01:00
|
|
|
openssl = ["tls-openssl", "actix-http/openssl"]
|
2019-03-26 05:58:01 +01:00
|
|
|
|
2019-07-31 22:02:56 +02:00
|
|
|
# rustls
|
2021-02-07 04:54:58 +01:00
|
|
|
rustls = ["tls-rustls", "actix-http/rustls"]
|
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
|
|
|
|
2021-02-13 16:08:43 +01:00
|
|
|
# cookie parsing and cookie jar
|
2021-04-09 19:07:10 +02:00
|
|
|
cookies = ["cookie"]
|
2021-02-13 16:08:43 +01:00
|
|
|
|
2021-02-09 11:41:20 +01:00
|
|
|
# trust-dns as dns resolver
|
|
|
|
trust-dns = ["actix-http/trust-dns"]
|
|
|
|
|
2021-06-19 21:21:13 +02:00
|
|
|
# Internal (PRIVATE!) features used to aid testing and cheking feature status.
|
|
|
|
# Don't rely on these whatsoever. They may disappear at anytime.
|
|
|
|
__compress = []
|
|
|
|
|
2019-03-26 05:58:01 +01:00
|
|
|
[dependencies]
|
2021-04-21 12:14:22 +02:00
|
|
|
actix-codec = "0.4.0"
|
2021-04-16 21:28:21 +02:00
|
|
|
actix-service = "2.0.0"
|
2021-06-26 17:33:36 +02:00
|
|
|
actix-http = "3.0.0-beta.8"
|
2021-02-28 19:17:08 +01:00
|
|
|
actix-rt = { version = "2.1", default-features = false }
|
2019-11-19 04:55:17 +01:00
|
|
|
|
2020-10-19 19:24:22 +02:00
|
|
|
base64 = "0.13"
|
2021-01-04 00:47:04 +01:00
|
|
|
bytes = "1"
|
2021-06-19 21:21:13 +02:00
|
|
|
cfg-if = "1"
|
2021-04-09 19:07:10 +02:00
|
|
|
cookie = { version = "0.15", features = ["percent-encode"], optional = true }
|
2021-01-07 21:02:08 +01:00
|
|
|
derive_more = "0.99.5"
|
2021-01-04 00:47:04 +01:00
|
|
|
futures-core = { version = "0.3.7", default-features = false }
|
2021-03-07 20:29:02 +01:00
|
|
|
itoa = "0.4"
|
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"
|
2021-02-07 04:54:58 +01:00
|
|
|
tls-openssl = { version = "0.10.9", package = "openssl", optional = true }
|
|
|
|
tls-rustls = { version = "0.19.0", package = "rustls", optional = true, features = ["dangerous_configuration"] }
|
2019-03-26 05:58:01 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-06-26 17:33:36 +02:00
|
|
|
actix-web = { version = "4.0.0-beta.8", features = ["openssl"] }
|
|
|
|
actix-http = { version = "3.0.0-beta.8", features = ["openssl"] }
|
2021-04-02 11:03:01 +02:00
|
|
|
actix-http-test = { version = "3.0.0-beta.4", features = ["openssl"] }
|
2021-04-17 03:07:33 +02:00
|
|
|
actix-utils = "3.0.0"
|
2021-02-07 02:00:40 +01:00
|
|
|
actix-server = "2.0.0-beta.3"
|
2021-03-29 14:45:48 +02:00
|
|
|
actix-tls = { version = "3.0.0-beta.5", features = ["openssl", "rustls"] }
|
2021-06-20 20:47:42 +02:00
|
|
|
actix-test = { version = "0.1.0-beta.3", features = ["openssl", "rustls"] }
|
2021-01-17 06:19:32 +01:00
|
|
|
|
2019-12-20 08:50:07 +01:00
|
|
|
brotli2 = "0.3.2"
|
2021-03-07 20:29:02 +01:00
|
|
|
env_logger = "0.8"
|
2019-12-12 10:08:08 +01:00
|
|
|
flate2 = "1.0.13"
|
2021-01-04 00:47:04 +01:00
|
|
|
futures-util = { version = "0.3.7", default-features = false }
|
2021-01-17 06:19:32 +01:00
|
|
|
rcgen = "0.8"
|
2019-12-12 10:08:08 +01:00
|
|
|
webpki = "0.21"
|
2021-04-02 09:26:59 +02:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "client"
|
|
|
|
required-features = ["rustls"]
|