Cargo Features

[dependencies]
rdkafka-sys = { version = "4.7.0+2.3.0", default-features = false, features = ["cmake-build", "cmake_build", "dynamic-linking", "dynamic_linking", "ssl", "ssl-vendored", "gssapi", "gssapi-vendored", "sasl", "libz", "libz-static", "curl", "curl-static", "zstd", "zstd-pkg-config", "external-lz4", "external_lz4"] }
default = libz

The libz feature is set by default whenever rdkafka-sys is added without default-features = false somewhere in the dependency tree.

cmake-build cmake_build? = cmake

Build librdkafka with its CMake build system, rather than its default "mklove"
build system. This feature requires that the system has CMake installed.

cmake_build = cmake-build

Deprecated alias for the cmake-build feature.

dynamic-linking dynamic_linking?

Dynamically link the system's librdkafka, rather than building and linking the bundled version statically. This feature requires that the system has librdkafka installed somewhere where pkg-config can find it.

dynamic_linking = dynamic-linking

Deprecated alias for the dynamic-linking feature.

ssl gssapi? ssl-vendored? = openssl-sys

Enable SSL support.

ssl-vendored = ssl

Build and link against the version of OpenSSL bundled with the openssl-sys crate.

Enables vendored of openssl-sys

gssapi gssapi-vendored? sasl? = sasl2-sys, ssl

Enable SASL GSSAPI support with Cyrus libsasl2.

gssapi-vendored = gssapi

Build and link against the libsasl2 bundled with the sasl2-sys crate.

Enables gssapi-vendored of sasl2-sys

sasl = gssapi

Deprecated alias for the gssapi feature.

libz default libz-static? = libz-sys

Enable support for libz compression.

libz-static = libz

Link against the version of libz bundled with the libz-sys crate, rather than the system's version.

Enables static of libz-sys

curl = curl-sys

Enable support for HTTP client via curl.

curl-static

Link against the version of curl bundled with the curl-sys crate, rather than the system's version.

Enables static-curl of curl-sys

zstd zstd-pkg-config? = zstd-sys

Enable support for zstd compression.

zstd-pkg-config = zstd

Link against the system's version of libzstd, rather than the version bundled with the zstd-sys crate.

Enables pkg-config of zstd-sys

external-lz4 external_lz4? = lz4-sys

Link against the lz4 compression library that is bundled with the lz4-sys crate. By default, librdkafka builds and statically links against its own bundled copy of lz4.

external_lz4 = external-lz4

Deprecated alias for the external-lz4 feature.

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.

openssl-sys ssl? ssl-vendored?
libz-sys libz libz-static?
curl-sys curl? curl-static?
zstd-sys zstd? zstd-pkg-config?
lz4-sys external-lz4?
sasl2-sys gssapi? gssapi-vendored?
cmake build cmake-build?