Skip to content

Commit 1cfaa34

Browse files
committed
chore: remove Cargo features in rustc-workspace-hack
1 parent 82950f6 commit 1cfaa34

File tree

3 files changed

+1
-167
lines changed

3 files changed

+1
-167
lines changed

Cargo.lock

-82
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,6 @@ dependencies = [
306306
"toml",
307307
]
308308

309-
[[package]]
310-
name = "bumpalo"
311-
version = "3.11.1"
312-
source = "registry+https://github.com/rust-lang/crates.io-index"
313-
checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
314-
315309
[[package]]
316310
name = "bytecount"
317311
version = "0.6.2"
@@ -1405,10 +1399,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
14051399
checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
14061400
dependencies = [
14071401
"cfg-if",
1408-
"js-sys",
14091402
"libc",
14101403
"wasi",
1411-
"wasm-bindgen",
14121404
]
14131405

14141406
[[package]]
@@ -1780,15 +1772,6 @@ dependencies = [
17801772
"libc",
17811773
]
17821774

1783-
[[package]]
1784-
name = "js-sys"
1785-
version = "0.3.60"
1786-
source = "registry+https://github.com/rust-lang/crates.io-index"
1787-
checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47"
1788-
dependencies = [
1789-
"wasm-bindgen",
1790-
]
1791-
17921775
[[package]]
17931776
name = "jsondocck"
17941777
version = "0.1.0"
@@ -2903,20 +2886,9 @@ dependencies = [
29032886
name = "rustc-workspace-hack"
29042887
version = "1.0.0"
29052888
dependencies = [
2906-
"bstr 0.2.17",
2907-
"clap 3.2.20",
2908-
"getrandom",
2909-
"hashbrown 0.12.3",
29102889
"libc",
2911-
"libz-sys",
2912-
"once_cell",
2913-
"rand",
29142890
"regex",
29152891
"serde_json",
2916-
"smallvec",
2917-
"syn 1.0.102",
2918-
"url",
2919-
"winapi",
29202892
]
29212893

29222894
[[package]]
@@ -5280,60 +5252,6 @@ dependencies = [
52805252
"rustc-std-workspace-core",
52815253
]
52825254

5283-
[[package]]
5284-
name = "wasm-bindgen"
5285-
version = "0.2.83"
5286-
source = "registry+https://github.com/rust-lang/crates.io-index"
5287-
checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268"
5288-
dependencies = [
5289-
"cfg-if",
5290-
"wasm-bindgen-macro",
5291-
]
5292-
5293-
[[package]]
5294-
name = "wasm-bindgen-backend"
5295-
version = "0.2.83"
5296-
source = "registry+https://github.com/rust-lang/crates.io-index"
5297-
checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142"
5298-
dependencies = [
5299-
"bumpalo",
5300-
"log",
5301-
"once_cell",
5302-
"proc-macro2",
5303-
"quote",
5304-
"syn 1.0.102",
5305-
"wasm-bindgen-shared",
5306-
]
5307-
5308-
[[package]]
5309-
name = "wasm-bindgen-macro"
5310-
version = "0.2.83"
5311-
source = "registry+https://github.com/rust-lang/crates.io-index"
5312-
checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
5313-
dependencies = [
5314-
"quote",
5315-
"wasm-bindgen-macro-support",
5316-
]
5317-
5318-
[[package]]
5319-
name = "wasm-bindgen-macro-support"
5320-
version = "0.2.83"
5321-
source = "registry+https://github.com/rust-lang/crates.io-index"
5322-
checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
5323-
dependencies = [
5324-
"proc-macro2",
5325-
"quote",
5326-
"syn 1.0.102",
5327-
"wasm-bindgen-backend",
5328-
"wasm-bindgen-shared",
5329-
]
5330-
5331-
[[package]]
5332-
name = "wasm-bindgen-shared"
5333-
version = "0.2.83"
5334-
source = "registry+https://github.com/rust-lang/crates.io-index"
5335-
checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
5336-
53375255
[[package]]
53385256
name = "winapi"
53395257
version = "0.3.9"

src/bootstrap/tool.rs

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ pub fn prepare_tool_cargo(
299299
|| path.ends_with("rustfmt")
300300
{
301301
cargo.env("LIBZ_SYS_STATIC", "1");
302-
features.push("rustc-workspace-hack/all-static".to_string());
303302
}
304303
if path.ends_with("cargo") {
305304
features.push("all-static".to_string());

src/tools/rustc-workspace-hack/Cargo.toml

+1-84
Original file line numberDiff line numberDiff line change
@@ -12,91 +12,8 @@ path = "lib.rs"
1212

1313
# For documentation about what this is and why in the world these dependencies
1414
# are appearing, see `README.md`.
15-
16-
[target.'cfg(windows)'.dependencies.winapi]
17-
version = "0.3"
18-
features = [
19-
"accctrl",
20-
"aclapi",
21-
"basetsd",
22-
"cfg",
23-
"consoleapi",
24-
"errhandlingapi",
25-
"evntrace",
26-
"fibersapi",
27-
"handleapi",
28-
"in6addr",
29-
"inaddr",
30-
"ioapiset",
31-
"jobapi",
32-
"jobapi2",
33-
"knownfolders",
34-
"libloaderapi",
35-
"lmcons",
36-
"memoryapi",
37-
"minschannel",
38-
"minwinbase",
39-
"mstcpip",
40-
"mswsock",
41-
"namedpipeapi",
42-
"ntdef",
43-
"ntsecapi",
44-
"ntstatus",
45-
"objbase",
46-
"processenv",
47-
"processthreadsapi",
48-
"profileapi",
49-
"psapi",
50-
"schannel",
51-
"securitybaseapi",
52-
"shellapi",
53-
"shlobj",
54-
"sspi",
55-
"synchapi",
56-
"sysinfoapi",
57-
"threadpoollegacyapiset",
58-
"timezoneapi",
59-
"userenv",
60-
"winbase",
61-
"wincon",
62-
"wincrypt",
63-
"windef",
64-
"winioctl",
65-
"winnt",
66-
"winreg",
67-
"winsock2",
68-
"winuser",
69-
"ws2def",
70-
"ws2ipdef",
71-
"ws2tcpip",
72-
]
73-
7415
[dependencies]
75-
bstr = { version = "0.2.17", features = ["default"] }
76-
clap = { version = "3.1.1", features = ["derive", "clap_derive"]}
77-
curl-sys = { version = "0.4.13", features = ["http2", "libnghttp2-sys"], optional = true }
78-
# Ensure `extra_traits` of libc, which is used transitively by Cargo.
7916
libc = { version = "0.2", features = ["extra_traits"] }
80-
# Ensure `js` of getrandom, which is (unfortunately) used transitively by Cargo.
81-
getrandom = { version = "0.2", features = ["js"] }
82-
# Ensure default features of libz-sys, which are disabled in some scenarios.
83-
libz-sys = { version = "1.1.2" }
17+
serde_json = { version = "1.0.31", features = ["unbounded_depth"] }
8418
# Ensure default features of regex, which are disabled in some scenarios.
8519
regex = { version = "1.5.6" }
86-
serde_json = { version = "1.0.31", features = ["raw_value", "unbounded_depth"] }
87-
syn = { version = "1", features = ['full', 'visit', 'visit-mut'] } # `visit-mut` required by Cargo via `gix`
88-
url = { version = "2.0", features = ['serde'] }
89-
# Ensure default features of rand, which are disabled in some scenarios.
90-
rand = { version = "0.8.5" }
91-
92-
# Ensure features of `hashbrown`, `smallvec`, and `once_cell`,
93-
# which are used transitively by Cargo (via `gix`).
94-
hashbrown = { version = "0.12.3", default-features = false, features = ["inline-more"] }
95-
once_cell = { version = "1.16.0", default-features = false, features = ["unstable"] }
96-
smallvec = { version = "1.10.0", features = ["write"] }
97-
98-
[target.'cfg(not(windows))'.dependencies]
99-
openssl = { version = "0.10.35", optional = true }
100-
101-
[features]
102-
all-static = ['openssl/vendored', 'curl-sys/static-curl', 'curl-sys/force-system-lib-on-osx']

0 commit comments

Comments
 (0)