Cargo Features

[dependencies]
rdkafka2 = { version = "0.0.1", default-features = false, features = ["tokio", "tracing", "cmake-build", "dynamic-linking", "ssl", "ssl-vendored", "gssapi", "gssapi-vendored", "sasl", "libz", "libz-static", "curl", "curl-static", "zstd", "zstd-pkg-config", "external-lz4"] }
default = cmake-build, libz, tokio

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

tokio default

Enables tokio-stream, macros and rt of tokio

tracing

Enables tracing

cmake-build default

Enables cmake-build of rdkafka2-sys

rdkafka2-sys:

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

dynamic-linking

Enables dynamic-linking of rdkafka2-sys

rdkafka2-sys:

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.

ssl

Enables ssl of rdkafka2-sys

rdkafka2-sys:

Enable SSL support.

ssl-vendored

Enables ssl-vendored of rdkafka2-sys

rdkafka2-sys:

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

gssapi

Enables gssapi of rdkafka2-sys

rdkafka2-sys:

Enable SASL GSSAPI support with Cyrus libsasl2.

gssapi-vendored

Enables gssapi-vendored of rdkafka2-sys

rdkafka2-sys:

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

sasl

Enables gssapi of rdkafka2-sys

libz default

Enables libz of rdkafka2-sys

rdkafka2-sys:

Enable support for libz compression.

libz-static

Enables libz-static of rdkafka2-sys

rdkafka2-sys:

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

curl

Enables curl of rdkafka2-sys

rdkafka2-sys:

Enable support for HTTP client via curl.

curl-static

Enables curl-static of rdkafka2-sys

rdkafka2-sys:

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

zstd

Enables zstd of rdkafka2-sys

rdkafka2-sys:

Enable support for zstd compression.

zstd-pkg-config

Enables zstd-pkg-config of rdkafka2-sys

rdkafka2-sys:

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

external-lz4

Enables external-lz4 of rdkafka2-sys

rdkafka2-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.

rdkafka2 has 17 features without comments.