Cargo Features

[dependencies]
actix-web = { version = "4.5.1", 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", "experimental-io-uring"] }
default = compress-brotli, compress-gzip, compress-zstd, cookies, http2, macros

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

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 = actix-macros, actix-web-codegen

Routing and runtime proc macros

cookies default secure-cookies? = cookie

Cookies support

Affects response::CookieIter

secure-cookies = cookies

Secure & signed cookies

Enables secure of cookie ^0.16

http2 default openssl? rustls-0_20? rustls-0_21? rustls-0_22?

Enables http2 of actix-http

actix-http:

HTTP/2 protocol support

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

experimental-io-uring

io-uring feature only available for Linux OSes.

Enables io-uring of actix-server

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.

actix-macros macros
actix-tls openssl? rustls-0_20? rustls-0_21? rustls-0_22?
actix-web-codegen macros

Enables cookie ^0.16