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
This commit is contained in:
Ximin Luo 2019-11-25 10:04:27 +00:00 committed by Andrew Gallant
parent 040ca45ba0
commit f8418c6a52
2 changed files with 2 additions and 0 deletions

1
Cargo.lock generated
View File

@ -132,6 +132,7 @@ dependencies = [
"bstr 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "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)", "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)", "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)", "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)", "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
] ]

View File

@ -27,6 +27,7 @@ regex = "1.1.5"
[dev-dependencies] [dev-dependencies]
glob = "0.3.0" glob = "0.3.0"
lazy_static = "1"
[features] [features]
simd-accel = [] simd-accel = []