Skip to content

Commit c27cdca

Browse files
committed
Switch strategies for how rustc's workspace is unioned
See rust-lang/rust#52919 for more details.
1 parent b60c887 commit c27cdca

File tree

1 file changed

+5
-40
lines changed

1 file changed

+5
-40
lines changed

Cargo.toml

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -45,46 +45,6 @@ clippy_lints = { version = "0.0.212", path = "clippy_lints" }
4545
regex = "1"
4646
semver = "0.9"
4747

48-
# Not actually needed right now but required to make sure that clippy/ and cargo build
49-
# with the same set of features in rust-lang/rust
50-
num-traits = "0.2" # enable the default feature
51-
backtrace = "0.3"
52-
53-
# keep in sync with `cargo`'s `Cargo.toml'
54-
[target.'cfg(windows)'.dependencies.winapi]
55-
version = "0.3"
56-
features = [
57-
# keep in sync with `cargo`'s `Cargo.toml'
58-
"handleapi",
59-
"jobapi",
60-
"jobapi2",
61-
"minwindef",
62-
"ntdef",
63-
"ntstatus",
64-
"processenv",
65-
"processthreadsapi",
66-
"psapi",
67-
"synchapi",
68-
"winerror",
69-
"winbase",
70-
"wincon",
71-
"winnt",
72-
# no idea where these come from
73-
"basetsd",
74-
"lmcons",
75-
"memoryapi",
76-
"minschannel",
77-
"minwinbase",
78-
"ntsecapi",
79-
"profileapi",
80-
"schannel",
81-
"securitybaseapi",
82-
"synchapi",
83-
"sysinfoapi",
84-
"timezoneapi",
85-
"wincrypt",
86-
]
87-
8848
[dev-dependencies]
8949
cargo_metadata = "0.5"
9050
compiletest_rs = "0.3.7"
@@ -94,6 +54,11 @@ clippy-mini-macro-test = { version = "0.2", path = "mini-macro" }
9454
serde = "1.0"
9555
derive-new = "0.5"
9656

57+
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
58+
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
59+
# for more information.
60+
rustc-workspace-hack = "1.0.0"
61+
9762
[build-dependencies]
9863
rustc_version = "0.2.2"
9964
ansi_term = "0.11"

0 commit comments

Comments
 (0)