To compile from source, you'll have to initialize the submodule containing librdkafka:
git submodule update --initand then compile using cargo, selecting the features that you want.
Example:
cargo build --features "ssl gssapi"The unit tests can run without a Kafka broker present:
cargo test --libThe integration tests start their own Kafka broker via testcontainers-rs, so all you need locally is a running Docker daemon and the usual Rust toolchain:
cargo testTo pick a specific Kafka version (default 4.0), set KAFKA_VERSION:
KAFKA_VERSION=3.9 cargo testFor the full walkthrough, including how the shared broker is wired up,
how to add a new test, the helper cheatsheet, and known quirks, see
tests/README.md.
- Checkout into master and pull the latest changes.
- Ensure
rdkafka-syshas no unreleased changes. If it does, releaserdkafka-sysfirst. - Ensure the changelog is up to date (i.e not Unreleased changes).
- Run
./generate_readme.py > README.md. - Bump the version in Cargo.toml and commit locally.
- Run
cargo publish. - Run
git tag -am $VERSION $VERSION. - Run
git push. - Run
git push origin $VERSION.