Skip to content

Commit

Permalink
Merge pull request #603 from fede1024/davidblewett/librdkafka-v2.2.0
Browse files Browse the repository at this point in the history
Update to librdkafka v2.2.0
  • Loading branch information
davidblewett committed Aug 25, 2023
2 parents 8afecbc + 405806f commit e954cf8
Show file tree
Hide file tree
Showing 11 changed files with 581 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdkafka"
version = "0.33.2"
version = "0.34.0"
authors = ["Federico Giraud <giraud.federico@gmail.com>"]
repository = "https://github.com/fede1024/rust-rdkafka"
readme = "README.md"
Expand All @@ -15,7 +15,7 @@ exclude = ["Cargo.lock"]
members = ["rdkafka-sys"]

[dependencies]
rdkafka-sys = { path = "rdkafka-sys", version = "4.5.0", default-features = false }
rdkafka-sys = { path = "rdkafka-sys", version = "4.6.0", default-features = false }
futures-channel = "0.3.0"
futures-executor = { version = "0.3.0", optional = true }
futures-util = { version = "0.3.0", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions rdkafka-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdkafka-sys"
version = "4.5.0+1.9.2"
version = "4.6.0+2.2.0"
authors = ["Federico Giraud <giraud.federico@gmail.com>"]
build = "build.rs"
links = "rdkafka"
Expand Down Expand Up @@ -75,7 +75,7 @@ curl = ["curl-sys"]

# Link against the version of curl bundled with the curl-sys crate, rather than
# the system's version.
curl-static = ["curl", "curl-sys/static-curl"]
curl-static = ["curl-sys/static-curl"]

# Enable support for zstd compression.
zstd = ["zstd-sys"]
Expand Down
10 changes: 10 additions & 0 deletions rdkafka-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use std::borrow::Borrow;
use std::env;
use std::ffi::OsStr;
#[cfg(feature = "cmake-build")]
use std::fs;
use std::path::{Path, PathBuf};
use std::process::{self, Command};

Expand Down Expand Up @@ -234,6 +236,14 @@ fn build_librdkafka() {
config.cxxflag("-DCURL_STATICLIB");
config.cflag(format!("-I{}/include", curl_root));
config.cxxflag(format!("-I{}/include", curl_root));
config.cflag(format!("-L{}/lib", curl_root));
config.cxxflag(format!("-L{}/lib", curl_root));
//FIXME: Upstream should be copying this in their build.rs
fs::copy(
format!("{}/build/libcurl.a", curl_root),
format!("{}/lib/libcurl.a", curl_root),
)
.unwrap();
}
} else {
config.define("WITH_CURL", "0");
Expand Down
2 changes: 2 additions & 0 deletions rdkafka-sys/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

* Upgrade to librdkafka v2.2.0.

## v4.5.0+1.9.2 (2023-06-09)

* Add support for the cluster mock API.
Expand Down
2 changes: 1 addition & 1 deletion rdkafka-sys/librdkafka
Loading

0 comments on commit e954cf8

Please sign in to comment.