Fork project: forked from kafka-rust.
rustfs-kafka is a Rust Kafka client workspace containing:
rustfs-kafka: synchronous client/producer/consumer/admin APIs.rustfs-kafka-async: async wrapper crate based on tokio.Current release target: 1.2.0.
[dependencies]
rustfs-kafka = "1.2.0"
rustfs-kafka-async = "1.2.0"
Consumer and Producer abstractions.security (default, aws-lc-rs provider)security-ring (ring provider)PLAIN, SCRAM-SHA-256, and SCRAM-SHA-512 over TLS.metrics support.producer_timestamp.3.9.2, 4.1.2, and 4.2.0.rustfs-kafka)| Feature | Default | Description |
|---|---|---|
security |
Yes | rustls + aws-lc-rs TLS backend |
security-ring |
No | rustls + ring TLS backend |
metrics |
No | metrics integration |
producer_timestamp |
No | producer timestamp support |
nightly |
No | nightly-only optimizations |
integration_tests |
No | integration test compilation helpers |
Note: compression codec support is provided by kafka-protocol; enable the needed codec features on that dependency
when required.
cargo build
cargo test
cargo clippy --all-targets --all-features -- -D warnings
Integration tests (Docker required):
cd crates/rustfs-kafka/tests
./run-all-tests
./run-sync-secure-tests
./run-async-secure-tests
Apache License 2.0. See LICENSE.