Skip to content

Commit

Permalink
Add zstd-sys dependency
Browse files Browse the repository at this point in the history
This fixes linking errors on some platforms.
  • Loading branch information
thijsc committed Jun 27, 2019
1 parent dfd428e commit 0efbcf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rdkafka-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions rdkafka-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 0efbcf3

Please sign in to comment.