Cargo Features

[dependencies]
madsim-rdkafka = { version = "0.4.2+0.34.0", default-features = false, features = ["naive-runtime", "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", "tokio", "tracing"] }

These features are re-exports of the features that the rdkafka-sys crate provides. See the rdkafka-sys documentation for details.

default = libz, tokio

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

naive-runtime = futures-executor

Affects util::DefaultRuntime, util::NaiveRuntime

cmake-build

Enables cmake-build of rdkafka-sys

rdkafka-sys:

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

Enables cmake_build of rdkafka-sys

rdkafka-sys:

Deprecated alias for the cmake-build feature.

dynamic-linking

Enables dynamic-linking of rdkafka-sys

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

dynamic_linking

Enables dynamic_linking of rdkafka-sys

rdkafka-sys:

Deprecated alias for the dynamic-linking feature.

ssl

Enables ssl of rdkafka-sys

rdkafka-sys:

Enable SSL support.

ssl-vendored

Enables ssl-vendored of rdkafka-sys

rdkafka-sys:

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

gssapi

Enables gssapi of rdkafka-sys

rdkafka-sys:

Enable SASL GSSAPI support with Cyrus libsasl2.

gssapi-vendored

Enables gssapi-vendored of rdkafka-sys

rdkafka-sys:

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

sasl

Enables sasl of rdkafka-sys

rdkafka-sys:

Deprecated alias for the gssapi feature.

libz default

Enables libz of rdkafka-sys

rdkafka-sys:

Enable support for libz compression.

libz-static

Enables libz-static of rdkafka-sys

rdkafka-sys:

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

curl

Enables curl of rdkafka-sys

rdkafka-sys:

Enable support for HTTP client via curl.

curl-static

Enables curl-static of rdkafka-sys

rdkafka-sys:

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

zstd

Enables zstd of rdkafka-sys

rdkafka-sys:

Enable support for zstd compression.

zstd-pkg-config

Enables zstd-pkg-config of rdkafka-sys

rdkafka-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 rdkafka-sys

rdkafka-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

Enables external_lz4 of rdkafka-sys

rdkafka-sys:

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.

tokio not madsim default

Affects util::DefaultRuntime, util::TokioRuntime

tracing not madsim implicit feature

Enables tracing

tracing:

Application-level tracing for Rust

Affects log::DEBUG, log::INFO, log::WARN

futures-executor not madsim naive-runtime?