Cargo Features
[dependencies]
kafka = { version = "0.10.0", default-features = false, features = ["snappy", "gzip", "security", "integration_tests"] }
- default = gzip, security, snappy
-
These default features are set whenever
kafka
is added without
somewhere in the dependency tree.default-features = false - snappy default = snap
-
Affects
compression::snappy
… - gzip default = flate2
-
Affects
compression::gzip
… - security default = openssl, openssl-sys
-
Affects
network::SecurityConfig
… - nightly integration_tests
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.