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
somewhere in the dependency tree.default-features = false - 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.