Cargo Features

[dependencies]
awc = { version = "3.5.1", default-features = false, features = ["openssl", "rustls", "rustls-0_20", "rustls-0_21", "rustls-0_22-webpki-roots", "rustls-0_22-native-roots", "rustls-0_23", "rustls-0_23-webpki-roots", "rustls-0_23-native-roots", "compress-brotli", "compress-gzip", "compress-zstd", "cookies", "trust-dns", "dangerous-h2c"] }
default = compress-brotli, compress-gzip, compress-zstd, cookies

These default features are set whenever awc is added without default-features = false somewhere in the dependency tree.

openssl = tls-openssl

TLS via OpenSSL

Enables openssl of actix-tls

rustls = rustls-0_20

TLS via Rustls v0.20

rustls-0_20 rustls? = tls-rustls-0_20

TLS via Rustls v0.20

Enables rustls-0_20 of actix-tls

rustls-0_21 = tls-rustls-0_21

TLS via Rustls v0.21

Enables rustls-0_21 of actix-tls

rustls-0_22-webpki-roots = tls-rustls-0_22

TLS via Rustls v0.22 (WebPKI roots)

Enables rustls-0_22-webpki-roots of actix-tls

rustls-0_22-native-roots = tls-rustls-0_22

TLS via Rustls v0.22 (Native roots)

Enables rustls-0_22-native-roots of actix-tls

rustls-0_23 rustls-0_23-native-roots? rustls-0_23-webpki-roots? = tls-rustls-0_23

TLS via Rustls v0.23

Enables rustls-0_23 of actix-tls

rustls-0_23-webpki-roots = rustls-0_23

TLS via Rustls v0.23 (WebPKI roots)

Enables rustls-0_23-webpki-roots of actix-tls

rustls-0_23-native-roots = rustls-0_23

TLS via Rustls v0.23 (Native roots)

Enables rustls-0_23-native-roots of actix-tls

compress-brotli default

Brotli algorithm content-encoding support

Enables compress-brotli of actix-http

compress-gzip default

Gzip and deflate algorithms content-encoding support

Enables compress-gzip of actix-http

compress-zstd default

Zstd algorithm content-encoding support

Enables compress-zstd of actix-http

cookies default

Cookie parsing and cookie jar

Enables cookie ^0.16

trust-dns = trust-dns-resolver

Use trust-dns-resolver crate as DNS resolver

dangerous-h2c

Enable dangerous feature for testing and local network usage:
- HTTP/2 over TCP(No Tls).
DO NOT enable this over any internet use case.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tls-openssl openssl?

Enables openssl

tls-rustls-0_20 rustls-0_20?

Enables rustls ^0.20

tls-rustls-0_21 rustls-0_21?

Enables rustls ^0.21

tls-rustls-0_22 rustls-0_22-native-roots? rustls-0_22-webpki-roots?

Enables rustls ^0.22

tls-rustls-0_23 rustls-0_23?

Enables rustls

add rustls 0.23 with default features to make aws_lc_rs work in tests

trust-dns-resolver trust-dns?