From 7fcf92dfea6c5ba7cec44fbae5e41ca2f181dcd8 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 21 May 2020 11:21:03 +0200 Subject: [PATCH] re-add some fake dependencies to avoid rebuilds --- Cargo.lock | 2 ++ Cargo.toml | 5 +++++ cargo-miri/Cargo.toml | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 23eafaaa6e4..182216b9ec3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,6 +71,7 @@ dependencies = [ "directories 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-workspace-hack 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.51 (registry+https://github.com/rust-lang/crates.io-index)", "vergen 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -290,6 +291,7 @@ dependencies = [ "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-workspace-hack 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 6eede5ef464..375cb0aa35b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,11 @@ rand = "0.7" # for more information. rustc-workspace-hack = "1.0.0" +# Enable some feature flags that dev-dependencies need but dependencies +# do not. This makes `./miri install` after `./miri build` faster. +[target."cfg(unix)".dependencies] +libc = "0.2" + [dev-dependencies] compiletest_rs = { version = "0.5", features = ["tmp"] } rustc_version = "0.2.3" diff --git a/cargo-miri/Cargo.toml b/cargo-miri/Cargo.toml index 86b2576273d..d6a98be2bbd 100644 --- a/cargo-miri/Cargo.toml +++ b/cargo-miri/Cargo.toml @@ -24,5 +24,9 @@ serde_json = "1.0.40" # for more information. rustc-workspace-hack = "1.0.0" +# Enable some feature flags that dev-dependencies need but dependencies +# do not. This makes `./miri install` after `./miri build` faster. +serde = { version = "*", features = ["derive"] } + [build-dependencies] vergen = "3"