From 0efbcf38150fad9fcd65b5f7f23f488c01248ae8 Mon Sep 17 00:00:00 2001 From: Thijs Cadier Date: Thu, 27 Jun 2019 10:38:39 +0200 Subject: [PATCH] Add zstd-sys dependency This fixes linking errors on some platforms. --- rdkafka-sys/Cargo.toml | 1 + rdkafka-sys/build.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/rdkafka-sys/Cargo.toml b/rdkafka-sys/Cargo.toml index fb6e397c0..3acf1c8c5 100644 --- a/rdkafka-sys/Cargo.toml +++ b/rdkafka-sys/Cargo.toml @@ -12,6 +12,7 @@ categories = ["external-ffi-bindings"] [dependencies] libz-sys = "1.0" +zstd-sys = { version = "1.3", features = [] } openssl-sys = { version = "~ 0.9.0", optional = true } [build-dependencies] diff --git a/rdkafka-sys/build.rs b/rdkafka-sys/build.rs index c0cc3e266..2f3e9ec0e 100644 --- a/rdkafka-sys/build.rs +++ b/rdkafka-sys/build.rs @@ -113,6 +113,7 @@ fn build_librdkafka() { println!("cargo:rustc-link-search=native={}/librdkafka/src", env::current_dir().expect("Can't find current dir").display()); + println!("cargo:rustc-link-lib=static=zstd"); println!("cargo:rustc-link-lib=static=rdkafka"); }