Cargo Features

awc = { version = "3.2.0", default-features = false, features = ["openssl", "rustls", "rustls-0_20", "rustls-0_21", "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

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

Cookie parsing and cookie jar

trust-dns = trust-dns-resolver

Use trust-dns-resolver crate as DNS resolver


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.

Enables percent-encode of cookie ^0.16

tls-openssl openssl?

Enables openssl

tls-rustls-0_20 rustls-0_20?

Enables dangerous_configuration and default features of rustls ^0.20

tls-rustls-0_21 rustls-0_21?

Enables dangerous_configuration and default features of rustls

trust-dns-resolver trust-dns?

Enables default features of trust-dns-resolver ^0.22