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"); }