]> git.lizzy.rs Git - rust.git/commitdiff
Add libz-sys to rustc-workspace-hack.
authorEric Huss <eric@huss.org>
Wed, 23 Dec 2020 20:18:15 +0000 (12:18 -0800)
committerEric Huss <eric@huss.org>
Wed, 23 Dec 2020 20:18:15 +0000 (12:18 -0800)
https://github.com/alexcrichton/curl-rust/pull/351 changed
curl-rust to no longer enable the default features of libz-sys.
Because rustfmt includes rustc-workspace-hack with the
rustc-workspace-hack/all-static feature (sometimes), it ends up building
libz-sys without the default features. This causes a duplicate
with other packages (like rls) which enable the default
features.

Cargo.lock
src/tools/rustc-workspace-hack/Cargo.toml

index 8fbfa8d642829e2197997fc3fc6ed28b43a85669..3603dbe1d0c6d56bda875db4543b0b1e649f3a76 100644 (file)
@@ -3435,6 +3435,7 @@ dependencies = [
  "byteorder",
  "crossbeam-utils 0.7.2",
  "libc",
+ "libz-sys",
  "proc-macro2",
  "quote",
  "serde",
index 11b175f9e80ed3320d846be02d9eadbc29ee0b07..1cde0e25cedca87062182ee5ad23370ee7a7711d 100644 (file)
@@ -65,6 +65,8 @@ byteorder = { version = "1", features = ['default', 'std'] }
 curl-sys = { version = "0.4.13", features = ["http2", "libnghttp2-sys"], optional = true }
 crossbeam-utils = { version = "0.7.2", features = ["nightly"] }
 libc = { version = "0.2.79", features = ["align"] }
+# Ensure default features of libz-sys, which are disabled in some scenarios.
+libz-sys = { version = "1.1.2" }
 proc-macro2 = { version = "1", features = ["default"] }
 quote = { version = "1", features = ["default"] }
 serde = { version = "1.0.82", features = ['derive'] }