Cargo Features
[dependencies]
warp_wasi = { version = "0.3.3", default-features = false, features = ["websocket", "tls", "compression", "compression-brotli", "compression-gzip", "multipart"] }
- default = multipart, websocket
-
These default features are set whenever
warp_wasi
is added without
somewhere in the dependency tree.default-features = false - websocket default = tokio-tungstenite_wasi
-
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. These features may have been created by mistake, and this functionality may be removed in the future.
- async-compression compression-brotli? compression-gzip?
-
Enables async-compression ^0.3.7
- multipart default
-
Affects
filters::multipart
… - tokio-tungstenite_wasi websocket
- tokio-rustls tls?
-
Enables tokio-rustls ^0.23