Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
- run: cargo fmt -- --check
- run: cargo clippy -- -Dwarnings
- run: cargo clippy --tests -- -Dwarnings
- run: cargo clippy --features kip-932 -- -Dwarnings
- run: cargo clippy --features kip-932 --tests -- -Dwarnings
- run: cargo test --doc
- run: cargo test --features kip-932 --lib consumer::share
- run: cargo test --features kip-932 --test test_share_consumer

check:
strategy:
Expand All @@ -33,6 +37,8 @@ jobs:
rdkafka-sys-features: cmake-build,libz-static,curl-static
- os: ubuntu-24.04
features: tracing
- os: ubuntu-24.04
features: kip-932
- os: ubuntu-24.04
features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd
rdkafka-sys-features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd
Expand Down
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,14 @@ zstd-pkg-config = ["rdkafka-sys/zstd-pkg-config"]
external-lz4 = ["rdkafka-sys/external-lz4"]
external_lz4 = ["rdkafka-sys/external_lz4"]
static-linking = ["rdkafka-sys/static-linking"]
# Opt in to the KIP-932 (Queues for Kafka) share consumer surface. The Rust
# types ship now so downstream crates can compile against the API shape, but
# runtime methods return `KafkaError::Unsupported` until librdkafka exposes
# the public share consumer C API (tracking confluentinc/librdkafka#5441).
kip-932 = []

[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"]
features = ["cmake-build", "naive-runtime", "tracing", "tokio", "kip-932"]
rustdoc-args = ["--cfg", "docsrs"]
Loading
Loading