Cargo Features
[dependencies]
pi_awc = { version = "0.1.0", default-features = false, features = ["rustls", "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
pi_awc
is added without
somewhere in the dependency tree.default-features = false - rustls = tls-rustls
-
actix-tls:
alias for backwards compat
- 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
-
cookie parsing and cookie jar
- trust-dns = trust-dns-resolver
-
trust-dns 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.
-
Enables cookie ^0.16
- tls-rustls rustls?
-
Enables rustls ^0.20.0
- trust-dns-resolver trust-dns?
-
Enables trust-dns-resolver ^0.20.0