6 releases (breaking)
Uses new Rust 2024
| new 0.5.0 | Aug 7, 2026 |
|---|---|
| 0.4.0 | Aug 6, 2026 |
| 0.3.0 | Aug 6, 2026 |
| 0.2.1 | Aug 2, 2026 |
| 0.1.0 | Aug 1, 2026 |
#433 in #kafka
90 downloads per month
Used in 5 crates
255KB
4.5K
SLoC
kafka-conn
Kafka 4.x wire connection. Part of kaas-lib.
Framing, correlation, per-key version negotiation, TLS and SASL — everything between a TCP socket and a typed Kafka request.
One socket, two tasks, one correlation map. Decoding happens on the calling
task, so a response that fails to parse fails one request instead of every
request sharing the connection. Dropping a send future is always safe: the
caller never touches the socket, so there is no half-read response to leave
behind.
Owns ApiKey and ErrorCode — the two protocol vocabularies every layer
above needs — each with an Unknown variant, because the codec ships Kafka
4.0 schemas and the brokers we target are newer.
Documentation
Full book: https://kaas-rs.github.io/kaas-lib/
Licence
Apache-2.0
Dependencies
~26–41MB
~643K SLoC