Cargo Features

[dependencies]
warp = { version = "0.3.7", 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 = rustls-pemfile, tokio-rustls

Affects server::TlsServer

compression = compression-brotli, compression-gzip

Enable compression-related filters

compression-brotli compression?

Enables brotli of async-compression

Affects compression::brotli, filters::compression

compression-gzip compression?

Enables deflate and gzip of async-compression

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. These features may have been created by mistake, and this functionality may be removed in the future.

async-compression compression-brotli? compression-gzip?
multer multipart

Enables multer ^2.1.0

tokio-tungstenite websocket

Enables tokio-tungstenite ^0.21

tokio-rustls tls?

Enables tokio-rustls ^0.25

rustls-pemfile tls?