Cargo Features
[dependencies]
ntex = { version = "2.8.0", default-features = false, features = ["openssl", "rustls", "compress", "cookie", "url", "tokio", "glommio", "async-std", "compio", "ws", "brotli"] }
- default = ws
-
The
ws
feature is set by default wheneverntex
is added without
somewhere in the dependency tree.default-features = false - openssl = tls-openssl
-
Affects
ntex::connect.openssl
… - rustls = tls-rustls, webpki-roots
-
rustls support
Affects
ntex::connect.rustls
… - compress = flate2
-
enable compressison support
Affects
http::encoding
… -
enable cookie support
Enables percent-encode of cookie
Affects
httpmessage::HttpMessage.cookies
,httpmessage::HttpMessage.cookie
,response::CookieIter
… - url = url-pkg
-
url support
- tokio
-
tokio runtime
- glommio
-
glommio runtime
- async-std
-
async-std runtime
- compio
-
compio runtime
- ws default
-
websocket support
Enables sha-1
Affects
ntex::ws
,web::ws
… - brotli
-
brotli2 support
Enables brotli2
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.