Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.41 KB

File metadata and controls

61 lines (43 loc) · 1.41 KB

Maintainer and contributor instructions

Compiling from source

To compile from source, you'll have to initialize the submodule containing librdkafka:

git submodule update --init

and then compile using cargo, selecting the features that you want. Example:

cargo build --features "ssl gssapi"

Tests

Unit tests

The unit tests can run without a Kafka broker present:

cargo test --lib

Integration tests

The 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 test

To pick a specific Kafka version (default 4.0), set KAFKA_VERSION:

KAFKA_VERSION=3.9 cargo test

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

Releasing

  • Checkout into master and pull the latest changes.
  • Ensure rdkafka-sys has no unreleased changes. If it does, release rdkafka-sys first.
  • 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.