[package] name = "rdkafka" version = "0.37.0" authors = ["Federico Giraud "] repository = "https://github.com/fede1024/rust-rdkafka" readme = "README.md" license = "MIT" description = "Rust wrapper for librdkafka" keywords = ["kafka", "rdkafka"] categories = ["api-bindings"] edition = "2018" exclude = ["Cargo.lock"] rust-version = "1.70" [workspace] members = ["rdkafka-sys"] [dependencies] rdkafka-sys = { path = "rdkafka-sys", version = "4.8.0", default-features = false } futures-channel = "0.3.0" futures-executor = { version = "0.3.0", optional = true } futures-util = { version = "0.3.0", default-features = false } libc = "0.2.0" log = "0.4.8" serde = { version = "1.0.0", features = ["derive"] } serde_derive = "1.0.0" serde_json = "1.0.0" slab = "0.4" tokio = { version = "1.18", features = ["rt", "time"], optional = true } tracing = { version = "0.1.30", optional = true } [dev-dependencies] async-std = { version = "1.9.0", features = ["attributes"] } backon = { version = "1.2", default-features = false, features = ["std-blocking-sleep"] } chrono = "0.4.0" clap = "2.18.0" env_logger = "0.9.0" futures = "0.3.0" hdrhistogram = "7.0.0" maplit = "1.0.2" rand = "0.3.15" regex = "1.1.6" smol = "1.2.4" tokio = { version = "1.18", features = ["macros", "rt-multi-thread", "time"] } # These features are re-exports of the features that the rdkafka-sys crate # provides. See the rdkafka-sys documentation for details. [features] default = ["libz", "tokio"] naive-runtime = ["futures-executor"] cmake-build = ["rdkafka-sys/cmake-build"] cmake_build = ["rdkafka-sys/cmake_build"] dynamic-linking = ["rdkafka-sys/dynamic-linking"] dynamic_linking = ["rdkafka-sys/dynamic_linking"] ssl = ["rdkafka-sys/ssl"] ssl-vendored = ["rdkafka-sys/ssl-vendored"] gssapi = ["rdkafka-sys/gssapi"] gssapi-vendored = ["rdkafka-sys/gssapi-vendored"] sasl = ["rdkafka-sys/sasl"] libz = ["rdkafka-sys/libz"] libz-static = ["rdkafka-sys/libz-static"] curl = ["rdkafka-sys/curl"] curl-static = ["rdkafka-sys/curl-static"] zstd = ["rdkafka-sys/zstd"] zstd-pkg-config = ["rdkafka-sys/zstd-pkg-config"] external-lz4 = ["rdkafka-sys/external-lz4"] external_lz4 = ["rdkafka-sys/external_lz4"] [package.metadata.docs.rs] # docs.rs doesn't allow writing to ~/.cargo/registry (reasonably), so we have to # use the CMake build for a proper out-of-tree build. features = ["cmake-build", "naive-runtime", "tracing", "tokio"] rustdoc-args = ["--cfg", "docsrs"]