kafka/
lib.rs

1//! Clients for comunicating with a [Kafka](http://kafka.apache.org/)
2//! cluster.  These are:
3//!
4//! - `kafka::producer::Producer` - for sending message to Kafka
5//! - `kafka::consumer::Consumer` - for retrieving/consuming messages from Kafka
6//! - `kafka::client::KafkaClient` - a lower-level, general purpose client leaving
7//!   you with more power but also more responsibility
8//!
9//! See module level documentation corresponding to each client individually.
10#![recursion_limit = "128"]
11#![cfg_attr(feature = "nightly", feature(test))]
12#![deny(clippy::all)]
13#![warn(clippy::pedantic)]
14
15#[macro_use]
16extern crate tracing;
17
18#[cfg(feature = "snappy")]
19extern crate snap;
20
21#[cfg(all(test, feature = "nightly"))]
22extern crate test;
23
24pub mod client;
25mod client_internals;
26mod codecs;
27mod compression;
28pub mod consumer;
29pub mod error;
30pub mod producer;
31mod protocol;
32mod utils;
33
34pub use self::error::{Error, Result};