Skip to content

Commit

Permalink
Upgrade to librdkafka v2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Aug 31, 2024
1 parent 7462dc2 commit 4a217ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rdkafka-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdkafka-sys"
version = "4.3.0+2.4.0"
version = "4.3.0+2.5.0"
authors = ["Federico Giraud <[email protected]>"]
build = "build.rs"
links = "rdkafka"
Expand Down
2 changes: 1 addition & 1 deletion rdkafka-sys/librdkafka
Submodule librdkafka updated 103 files
6 changes: 4 additions & 2 deletions rdkafka-sys/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use libc::{addrinfo, c_char, c_int, c_void, sockaddr, FILE};
use num_enum::TryFromPrimitive;

pub const RD_KAFKA_VERSION: u32 = 33816831;
pub const RD_KAFKA_VERSION: u32 = 33882367;
pub const RD_KAFKA_DEBUG_CONTEXTS : & [u8 ; 138] = b"all,generic,broker,topic,metadata,feature,queue,msg,protocol,cgrp,security,fetch,interceptor,plugin,consumer,admin,eos,mock,assignor,conf\0" ;
pub const RD_KAFKA_DESTROY_F_NO_CONSUMER_CLOSE: u32 = 8;
pub const RD_KAFKA_OFFSET_BEGINNING: i32 = -2;
Expand Down Expand Up @@ -320,7 +320,9 @@ pub enum rd_kafka_resp_err_t {
RD_KAFKA_RESP_ERR_UNRELEASED_INSTANCE_ID = 111,
RD_KAFKA_RESP_ERR_UNSUPPORTED_ASSIGNOR = 112,
RD_KAFKA_RESP_ERR_STALE_MEMBER_EPOCH = 113,
RD_KAFKA_RESP_ERR_END_ALL = 114,
RD_KAFKA_RESP_ERR_UNKNOWN_SUBSCRIPTION_ID = 117,
RD_KAFKA_RESP_ERR_TELEMETRY_TOO_LARGE = 118,
RD_KAFKA_RESP_ERR_END_ALL = 119,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down
2 changes: 2 additions & 0 deletions rdkafka-sys/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ pub fn rd_kafka_resp_err_t_to_rdkafka_error(err: RDKafkaRespErr) -> RDKafkaError
RD_KAFKA_RESP_ERR_UNRELEASED_INSTANCE_ID => UnreleasedInstanceId,
RD_KAFKA_RESP_ERR_UNSUPPORTED_ASSIGNOR => UnsupportedAssignor,
RD_KAFKA_RESP_ERR_STALE_MEMBER_EPOCH => StaleMemberEpoch,
RD_KAFKA_RESP_ERR_UNKNOWN_SUBSCRIPTION_ID => UnknownSubscriptionId,
RD_KAFKA_RESP_ERR_TELEMETRY_TOO_LARGE => TelemetryTooLarge,
RD_KAFKA_RESP_ERR_END_ALL => EndAll,
}
}
6 changes: 6 additions & 0 deletions rdkafka-sys/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ pub enum RDKafkaErrorCode {
UnsupportedAssignor = 112,
/// The member epoch is stale.
StaleMemberEpoch = 113,
/// The client sent a push telemetry request with an invalid or outdated
/// subscription ID.
UnknownSubscriptionId = 117,
/// The client sent a push telemetry request larger than the maximum size
/// that the broker will accept.
TelemetryTooLarge = 118,
#[doc(hidden)]
EndAll,
}
Expand Down

0 comments on commit 4a217ec

Please sign in to comment.