Skip to content

Commit e954cf8

Browse files
authored
Merge pull request #603 from fede1024/davidblewett/librdkafka-v2.2.0
Update to librdkafka v2.2.0
2 parents 8afecbc + 405806f commit e954cf8

File tree

11 files changed

+581
-16
lines changed

11 files changed

+581
-16
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rdkafka"
3-
version = "0.33.2"
3+
version = "0.34.0"
44
authors = ["Federico Giraud <[email protected]>"]
55
repository = "https://github.com/fede1024/rust-rdkafka"
66
readme = "README.md"
@@ -15,7 +15,7 @@ exclude = ["Cargo.lock"]
1515
members = ["rdkafka-sys"]
1616

1717
[dependencies]
18-
rdkafka-sys = { path = "rdkafka-sys", version = "4.5.0", default-features = false }
18+
rdkafka-sys = { path = "rdkafka-sys", version = "4.6.0", default-features = false }
1919
futures-channel = "0.3.0"
2020
futures-executor = { version = "0.3.0", optional = true }
2121
futures-util = { version = "0.3.0", default-features = false }

rdkafka-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rdkafka-sys"
3-
version = "4.5.0+1.9.2"
3+
version = "4.6.0+2.2.0"
44
authors = ["Federico Giraud <[email protected]>"]
55
build = "build.rs"
66
links = "rdkafka"
@@ -75,7 +75,7 @@ curl = ["curl-sys"]
7575

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

8080
# Enable support for zstd compression.
8181
zstd = ["zstd-sys"]

rdkafka-sys/build.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use std::borrow::Borrow;
22
use std::env;
33
use std::ffi::OsStr;
4+
#[cfg(feature = "cmake-build")]
5+
use std::fs;
46
use std::path::{Path, PathBuf};
57
use std::process::{self, Command};
68

@@ -234,6 +236,14 @@ fn build_librdkafka() {
234236
config.cxxflag("-DCURL_STATICLIB");
235237
config.cflag(format!("-I{}/include", curl_root));
236238
config.cxxflag(format!("-I{}/include", curl_root));
239+
config.cflag(format!("-L{}/lib", curl_root));
240+
config.cxxflag(format!("-L{}/lib", curl_root));
241+
//FIXME: Upstream should be copying this in their build.rs
242+
fs::copy(
243+
format!("{}/build/libcurl.a", curl_root),
244+
format!("{}/lib/libcurl.a", curl_root),
245+
)
246+
.unwrap();
237247
}
238248
} else {
239249
config.define("WITH_CURL", "0");

rdkafka-sys/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
* Upgrade to librdkafka v2.2.0.
6+
57
## v4.5.0+1.9.2 (2023-06-09)
68

79
* Add support for the cluster mock API.

rdkafka-sys/librdkafka

0 commit comments

Comments
 (0)