@@ -5,6 +5,9 @@ edition = "2021"
5
5
build = " build.rs"
6
6
default-run = " bootstrap"
7
7
8
+ [features ]
9
+ build-metrics = [" sysinfo" ]
10
+
8
11
[lib ]
9
12
path = " lib.rs"
10
13
doctest = false
@@ -31,12 +34,18 @@ test = false
31
34
32
35
[dependencies ]
33
36
build_helper = { path = " ../tools/build_helper" }
37
+ cc = " 1.0.69"
38
+ clap = { version = " 4.2.4" , default-features = false , features = [" std" , " usage" , " help" , " derive" , " error-context" ] }
39
+ clap_complete = " 4.2.2"
34
40
cmake = " 0.1.38"
35
41
filetime = " 0.2"
36
- cc = " 1.0.69"
37
- libc = " 0.2"
38
42
hex = " 0.4"
43
+ ignore = " 0.4.10"
44
+ libc = " 0.2"
39
45
object = { version = " 0.32.0" , default-features = false , features = [" archive" , " coff" , " read_core" , " unaligned" ] }
46
+ once_cell = " 1.7.2"
47
+ opener = " 0.5"
48
+ semver = " 1.0.17"
40
49
serde = " 1.0.137"
41
50
# Directly use serde_derive rather than through the derive feature of serde to allow building both
42
51
# in parallel and to allow serde_json and toml to start building as soon as serde has been built.
@@ -46,17 +55,11 @@ sha2 = "0.10"
46
55
tar = " 0.4"
47
56
termcolor = " 1.2.0"
48
57
toml = " 0.5"
49
- ignore = " 0.4.10"
50
- opener = " 0.5"
51
- once_cell = " 1.7.2"
52
- xz2 = " 0.1"
53
58
walkdir = " 2"
59
+ xz2 = " 0.1"
54
60
55
61
# Dependencies needed by the build-metrics feature
56
62
sysinfo = { version = " 0.26.0" , optional = true }
57
- clap = { version = " 4.2.4" , default-features = false , features = [" std" , " usage" , " help" , " derive" , " error-context" ] }
58
- clap_complete = " 4.2.2"
59
- semver = " 1.0.17"
60
63
61
64
# Solaris doesn't support flock() and thus fd-lock is not option now
62
65
[target .'cfg(not(target_os = "solaris"))' .dependencies ]
@@ -80,9 +83,6 @@ features = [
80
83
[dev-dependencies ]
81
84
pretty_assertions = " 1.4"
82
85
83
- [features ]
84
- build-metrics = [" sysinfo" ]
85
-
86
86
# We care a lot about bootstrap's compile times, so don't include debuginfo for
87
87
# dependencies, only bootstrap itself.
88
88
[profile .dev ]
0 commit comments