X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=Cargo.toml;h=7ee96f7e99e682604ca48c7da0d3863beec2ff1a;hb=c3ad18256dab981000bcade9ad21420c63d044f9;hp=896c726b9aa6540a3a581ee396c65f7fa3193a7a;hpb=36305e3a504434aa49999d6e56c28170cd2312c0;p=rust.git diff --git a/Cargo.toml b/Cargo.toml index 896c726b9aa..7ee96f7e99e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] -authors = ["Scott Olson "] -description = "An experimental interpreter for Rust MIR." +authors = ["Miri Team"] +description = "An experimental interpreter for Rust MIR (core driver)." license = "MIT/Apache-2.0" name = "miri" repository = "https://github.com/rust-lang/miri" @@ -17,50 +17,36 @@ name = "miri" test = false # we have no unit tests doctest = false # and no doc tests -[[bin]] -name = "cargo-miri" -test = false # we have no unit tests -doctest = false # and no doc tests -required-features = ["cargo_miri"] - -[[bin]] -name = "miri-rustc-tests" -test = false # we have no unit tests -doctest = false # and no doc tests -required-features = ["rustc_tests"] - [dependencies] -cargo_metadata = { version = "0.9.0", optional = true } -directories = { version = "2.0", optional = true } -rustc_version = { version = "0.2.3", optional = true } -serde_json = { version = "1.0.44", optional = true } - -getrandom = { version = "0.1.8", features = ["std"] } -byteorder = "1.3" -env_logger = "0.7.1" +getrandom = { version = "0.2", features = ["std"] } +env_logger = "0.8" log = "0.4" shell-escape = "0.1.4" hex = "0.4.0" -rand = "0.7" +rand = "0.8" +smallvec = "1.4.2" # A noop dependency that changes in the Rust repository, it's a bit of a hack. # See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust` # for more information. rustc-workspace-hack = "1.0.0" +measureme = "9.1.2" -# Some extra dependency for better feature control to avoid having to rebuild -# between "cargo build" and "cargo intall". -num-traits = "*" -serde = { version = "*", features = ["derive"] } - -[build-dependencies] -vergen = "3" - -[features] -default = ["cargo_miri"] -cargo_miri = ["cargo_metadata", "directories", "rustc_version", "serde_json"] -rustc_tests = [] +# 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.4", features = ["tmp"] } -colored = "1.6" +compiletest_rs = { version = "0.6", features = ["tmp"] } +rustc_version = "0.3" +colored = "2" + +[package.metadata.rust-analyzer] +# This crate uses #[feature(rustc_private)]. +# See https://github.com/rust-analyzer/rust-analyzer/pull/7891 +rustc_private = true + +[[test]] +name = "compiletest" +harness = false