Cargo Features
[dependencies]
actix-web = { version = "4.9.0", default-features = false, features = ["compress-brotli", "compress-gzip", "compress-zstd", "macros", "cookies", "secure-cookies", "http2", "openssl", "rustls", "rustls-0_20", "rustls-0_21", "rustls-0_22", "rustls-0_23", "unicode", "experimental-io-uring", "compat", "compat-routing-macros-force-pub"] }
- default = compat, compress-brotli, compress-gzip, compress-zstd, cookies, http2, macros, unicode
-
These default features are set whenever
actix-web
is added without
somewhere in the dependency tree.default-features = false - 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
- macros default
-
Routing and runtime proc macros
Enables actix-macros and actix-web-codegen
-
Cookies support
Enables cookie ^0.16
Affects
response::CookieIter
… -
Secure & signed cookies
Enables secure of cookie ^0.16
- http2 default openssl? rustls-0_20? rustls-0_21? rustls-0_22? rustls-0_23?
-
HTTP/2 support (including h2c).
Enables http2 of actix-http
- openssl = http2
-
TLS via OpenSSL
Enables openssl of actix-http, accept and openssl of actix-tls
- rustls = rustls-0_20
-
TLS via Rustls v0.20
- rustls-0_20 rustls? = http2
-
TLS via Rustls v0.20
Enables rustls-0_20 of actix-http, accept and rustls-0_20 of actix-tls
- rustls-0_21 = http2
-
TLS via Rustls v0.21
Enables rustls-0_21 of actix-http, accept and rustls-0_21 of actix-tls
- rustls-0_22 = http2
-
TLS via Rustls v0.22
Enables rustls-0_22 of actix-http, accept and rustls-0_22 of actix-tls
- rustls-0_23 = http2
-
TLS via Rustls v0.23
Enables rustls-0_23 of actix-http, accept and rustls-0_23 of actix-tls
- unicode default
-
Full unicode support
Enables regex, unicode of actix-router
- experimental-io-uring
-
io-uring feature only available for Linux OSes.
Enables io-uring of actix-server
- compat default = compat-routing-macros-force-pub
-
Feature group which, when disabled, helps migrate code to v5.0.
- compat-routing-macros-force-pub compat
-
Opt-out forwards-compatibility for handler visibility inheritance fix.
Enables compat-routing-macros-force-pub of optional actix-web-codegen
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.