]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/Cargo.toml
Auto merge of #98140 - klensy:compiletest-strip, r=Mark-Simulacrum
[rust.git] / src / bootstrap / Cargo.toml
index 8c23491a6c474773c6692e1dc139745c4217948d..b9bd3d0cf7895d37a3ce32449a1c5b49132d1953 100644 (file)
@@ -37,11 +37,14 @@ test = false
 [dependencies]
 cmake = "0.1.38"
 filetime = "0.2"
+num_cpus = "1.0"
 getopts = "0.2.19"
 cc = "1.0.69"
 libc = "0.2"
+hex = "0.4"
 serde = { version = "1.0.8", features = ["derive"] }
 serde_json = "1.0.2"
+sha2 = "0.10"
 tar = "0.4"
 toml = "0.5"
 ignore = "0.4.10"
@@ -50,6 +53,9 @@ once_cell = "1.7.2"
 xz2 = "0.1"
 walkdir = "2"
 
+# Dependencies needed by the build-metrics feature
+sysinfo = { version = "0.24.1", optional = true }
+
 [target.'cfg(windows)'.dependencies.winapi]
 version = "0.3"
 features = [
@@ -65,3 +71,14 @@ features = [
 
 [dev-dependencies]
 pretty_assertions = "0.7"
+
+[features]
+build-metrics = ["sysinfo"]
+
+# We care a lot about bootstrap's compile times, so don't include debuginfo for
+# dependencies, only bootstrap itself.
+[profile.dev]
+debug = 0
+[profile.dev.package]
+# Only use debuginfo=1 to further reduce compile times.
+bootstrap.debug = 1