Cargo Features

[dependencies]
rskafka = { version = "0.5.0", default-features = false, features = ["full", "compression-gzip", "compression-lz4", "compression-snappy", "compression-zstd", "transport-socks5", "transport-tls", "unstable-fuzzing"] }
default = compression-gzip, compression-lz4, compression-snappy, compression-zstd

These default features are set whenever rskafka is added without default-features = false somewhere in the dependency tree.

full = compression-gzip, compression-lz4, compression-snappy, compression-zstd, transport-socks5, transport-tls
compression-gzip default full? = flate2
compression-lz4 default full? = lz4
compression-snappy default full? = snap
compression-zstd default full? = zstd
transport-socks5 full? = async-socks5
transport-tls full? = rustls, tokio-rustls

Affects transport::TlsConfig

unstable-fuzzing

Affects rskafka::messenger, rskafka::protocol

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-socks5 transport-socks5?

Enables async-socks5 ^0.5

flate2 compression-gzip
lz4 compression-lz4
rustls transport-tls?

Enables rustls ^0.21

snap compression-snappy
tokio-rustls transport-tls?

Enables tokio-rustls ^0.24

zstd compression-zstd

Enables zstd ^0.12