From f8418c6a5271349d37f9e8217923c57b9613d4ab Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Mon, 25 Nov 2019 10:04:27 +0000 Subject: [PATCH] explicitly declare lazy_static dependency `benches/bench.rs` uses lazy_static but Cargo.toml does not declare a dependency on it. This causes rustc to use its own internal private copy instead. Sometimes this causes unintuitive errors like this Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942243 The underlying issue is https://github.com/rust-lang/rust#27812 but it can be avoided by explicitly declaring the dependency, which you are supposed to do anyways. Closes #1435 --- Cargo.lock | 1 + globset/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 6ddbb10..f312eb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -132,6 +132,7 @@ dependencies = [ "bstr 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/globset/Cargo.toml b/globset/Cargo.toml index 6fe923e..a6227a7 100644 --- a/globset/Cargo.toml +++ b/globset/Cargo.toml @@ -27,6 +27,7 @@ regex = "1.1.5" [dev-dependencies] glob = "0.3.0" +lazy_static = "1" [features] simd-accel = []