NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4319 most downloaded on crates.io
Implementation of Kafka wire protocol.
Latest stable
0.18.0
Last release 3 months ago
20 Aug 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
26 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
feat: add KIP-534 Batch attribute delete_horizon by @zac-torkelson in https://github.com/kafka-protocol-rs/kafka-protocol-rs/pull/157
delete_horizon by @zac-torkelson in https://github.com/kafka-protocol-rs/kafka-protocol-rs/pull/157paste dependency by @michaelbeaumont in https://github.com/kafka-protocol-rs/kafka-protocol-rs/pull/160Full Changelog: https://github.com/kafka-protocol-rs/kafka-protocol-rs/compare/0.17.0...0.18.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix ApiKey::iter by @rukai in https://github.com/kafka-protocol-rs/kafka-protocol-rs/pull/139
Full Changelog: https://github.com/kafka-protocol-rs/kafka-protocol-rs/compare/0.16.0...0.17.0
Support kafka 4.0 [breaking change] by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/120
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.15.1...0.16.0
Fix bytes version by @belltoy in https://github.com/tychedelia/kafka-protocol-rs/pull/126
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.15.0...0.15.1
[Breaking Change] Remove unneeded trait bounds from Records::encode/Records::decode by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/…
impl Borrow<[u8]> for StrBytes, not Borrow<str> by @michaelbeaumont in https://github.com/tychedelia/kafka-protocol-rs/pull/117Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.14.0...0.15.0
Records::encode/Records::decode no longer has unneeded trait bounds.ByteBuf::try_get_* methods that already exist on Buf are removed in favor of the Buf methodExplicitly use trait impl in types (branch V0.14) by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/109
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.14.0...0.14.1
[Breaking change] Fix calling Records::encode / Records::decode with None by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/100
Records::encode / Records::decode with None by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/100Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.13.0...0.14.0
Records::encode/Records::decode is now reverted back to their original API, instead encode_with_custom_compression and decode_with_custom_compression is provided for custom compression.ApiKey variants are renamed to remove the Key suffix.iterate_all and valid_versions methods to ApiKeyPartialEq and Display for VersionRangeMake ApiKey non_exhaustive by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/76
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.12.0...0.13.0
IndexMap<K, V> are now of type Vec<V>, the value of K is stored as a field within V.
.get() on the map, the best way to migrate is to refactor your code to avoid the need to lookup by iterating over the items in the response instead.responses.get(name) with something like responses.iter().find(|x| x.name == name) to achieve the same result. But note that this access is now O(N) instead of O(1).GroupId("some group") but is now "some group".gzip, zstd, snappy and lz4 features to enable the different compression algorithms for records (All enabled by default)Add helper methods to RequestKind and ResponseKind by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/70
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.11.0...0.12.0
client feature to enable encoding of requests and decoding of responses (enabled by default)broker feature to enable encoding of responses and decoding of requests (enabled by default)messages_enums feature to enable ResponseKind and RequestKind enumsencode, decode and header_version methods to ResponseKind and RequestKind[Breaking change] RequestKind/ResponseKind - Avoid redundant variant names by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/61
Display and more From<T> implementations for StrBytes by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/64IntoIterator instead of Iterator for RecordBatchEncoder::encode by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/67RecordBatchEncoder::encode by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/68EncodeError/DecodeError aliases by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/69Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.10.2...0.11.0
derive_builder with custom impl.EncodeError/DecodeError aliasesRecordBatchEncoder::encodeIntoIterator instead of Iterator for RecordBatchEncoder::encodeDisplay and more From<T> implementations for StrBytes.implement From for RequestKind and ResponseKind by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/60
From<T> for RequestKind and ResponseKind by @Hackzzila in https://github.com/tychedelia/kafka-protocol-rs/pull/60Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.10.1...0.10.2
fix lz4 compression by @pdeva in https://github.com/tychedelia/kafka-protocol-rs/pull/59
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.10.0...0.10.1
Fix clippy lints by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/49
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.9.0...0.10.0
anyhow for public error types. In general, these errors reflect non-recoverable programmer error and
should not occur when interacting with a well-formed Kafka implementation.StrBytes::from_str to from_static_str to avoid overlap with the FromStr trait.v3.7.0 Kafka.Update deps by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/45
string crate with a handrolled type by @bkirwi in https://github.com/tychedelia/kafka-protocol-rs/pull/44Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.8.2...0.9.0
- Expose protocol::gap module.
Re-export indexmap by @thedodd in https://github.com/tychedelia/kafka-protocol-rs/pull/36
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.8.0...0.8.1
Support Zstd and Lz4 compression by @gleyba in https://github.com/tychedelia/kafka-protocol-rs/pull/35
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.7.0...0.8.0
Enforce cargo fmt on protocol_codegen by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/25
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.6.1...0.7.0
derive_builder implementation in which default fields were not being used correctly.Miscellaneous dependency updates.
minor typo+warning fixes by @rukai in https://github.com/tychedelia/kafka-protocol-rs/pull/18
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.5.1...0.6.0
ApiKey::request_header_version and ApiKey::response_header_version to assist deserializing
headers without reference to message type.Upgrade the uuid library by @etorreborre in https://github.com/tychedelia/kafka-protocol-rs/pull/17
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.5.0...0.5.1
Fix destination directory computation by @davide-baldo in https://github.com/tychedelia/kafka-protocol-rs/pull/13
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.4.0...0.5.0
Builder::builder trait for retrieving builder instances from messages
without requiring extra builder imports.#[non_exhaustive] added to all items to ensure forward compatability
with protocol upgrades.Add ResponseError Type for Kafka response error codes by @belltoy in https://github.com/tychedelia/kafka-protocol-rs/pull/8
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.3.0...0.4.0
Run gen command from the root path by @belltoy in https://github.com/tychedelia/kafka-protocol-rs/pull/7
Full Changelog: https://github.com/tychedelia/kafka-protocol-rs/compare/0.2.0...0.3.0
Add derive builder for all messages.
https://crates.io/crates/kafka-protocol/0.1.0
https://crates.io/crates/kafka-protocol/0.1.0
One column per quarter.