| Crates.io | madsim-rdkafka |
| lib.rs | madsim-rdkafka |
| version | 0.4.4+0.34.0 |
| created_at | 2022-09-26 03:32:27.060955+00 |
| updated_at | 2025-06-24 08:38:25.347349+00 |
| description | The rdkafka simulator on madsim. |
| homepage | https://github.com/madsim-rs/madsim |
| repository | https://github.com/madsim-rs/madsim |
| max_upload_size | |
| id | 673949 |
| size | 458,864 |
The rdkafka simulator on madsim. Mirrors rdkafka v0.34.0 and librdkafka 2.3.0.
Replace all rdkafka entries in your Cargo.toml:
[dependencies]
rdkafka = { version = "0.4", package = "madsim-rdkafka" }
This crate roughly follows the rdkafka API but is NOT exactly the same.
The following functions are modified to be async:
FromClientConfig::from_configFromClientConfigAndContext::from_config_and_contextClientConfig::createClientConfig::create_with_contextClient::fetch_metadata1Client::fetch_watermarks1Client::fetch_group_list1Consumer::seekConsumer::seek_partitionsConsumer::commitConsumer::commit_consumer_stateConsumer::commit_messageConsumer::committedConsumer::committed_offsetsConsumer::offsets_for_timestampConsumer::offsets_for_times1Consumer::fetch_metadata1Consumer::fetch_watermarks1Consumer::fetch_group_list1Producer::flushProducer::init_transactionsProducer::send_offsets_to_transactionProducer::commit_transactionProducer::abort_transactionThe associated constant ClientContext::ENABLE_REFRESH_OAUTH_TOKEN is changed to a function in order to make the trait object-safe.
This crate has cherry-picked a commit from Materialize to support rewriting broker addresses.
A new method is added to ClientContext:
ClientContext::rewrite_broker_addr