]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Add `measureme` integration for profiling the interpreted program
[rust.git] / Cargo.toml
1 [package]
2 authors = ["Miri Team"]
3 description = "An experimental interpreter for Rust MIR (core driver)."
4 license = "MIT/Apache-2.0"
5 name = "miri"
6 repository = "https://github.com/rust-lang/miri"
7 version = "0.1.0"
8 default-run = "miri"
9 edition = "2018"
10
11 [lib]
12 test = true # we have unit tests
13 doctest = false # but no doc tests
14
15 [[bin]]
16 name = "miri"
17 test = false # we have no unit tests
18 doctest = false # and no doc tests
19
20 [dependencies]
21 measureme = { git = "https://github.com/rust-lang/measureme", rev = "501d6a3c192beee5e633a6c5f79130bedfdadcb5" }
22 getrandom = { version = "0.2", features = ["std"] }
23 env_logger = "0.8"
24 log = "0.4"
25 shell-escape = "0.1.4"
26 hex = "0.4.0"
27 rand = "0.8"
28 smallvec = "1.4.2"
29
30 # A noop dependency that changes in the Rust repository, it's a bit of a hack.
31 # See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
32 # for more information.
33 rustc-workspace-hack = "1.0.0"
34
35 # Enable some feature flags that dev-dependencies need but dependencies
36 # do not.  This makes `./miri install` after `./miri build` faster.
37 [target."cfg(unix)".dependencies]
38 libc = "0.2"
39
40 [dev-dependencies]
41 compiletest_rs = { version = "0.6", features = ["tmp"] }
42 rustc_version = "0.3"
43 colored = "2"
44
45 [package.metadata.rust-analyzer]
46 # This crate uses #[feature(rustc_private)]. 
47 # See https://github.com/rust-analyzer/rust-analyzer/pull/7891
48 rustc_private = true
49
50 [[test]]
51 name = "compiletest"
52 harness = false