Cargo Features

warp = { version = "0.3.6", default-features = false, features = ["multipart", "websocket", "tls", "compression", "compression-brotli", "compression-gzip"] }
default = multipart, websocket

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

multipart default = multer

Affects filters::multipart

websocket default = tokio-tungstenite

Affects filters::ws, test::ws, test::WsBuilder, test::WsClient

tls = tokio-rustls

Affects server::TlsServer

compression = compression-brotli, compression-gzip

Enable compression-related filters

compression-brotli compression?

Enables brotli of async-compression ^0.3.7

Affects compression::brotli, filters::compression

compression-gzip compression?

Enables deflate and gzip of async-compression ^0.3.7

Affects compression::gzip, compression::deflate, filters::compression

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

async-compression compression-brotli? compression-gzip?

Enables async-compression ^0.3.7

multer multipart

Enables multer ^2.1.0

tokio-tungstenite websocket

Enables tokio-tungstenite ^0.20

tokio-rustls tls?

Enables tokio-rustls ^0.24