diff options
| author | Weihang Lo <me@weihanglo.tw> | 2023-03-13 17:46:38 +0000 |
|---|---|---|
| committer | Weihang Lo <me@weihanglo.tw> | 2023-04-16 19:32:20 +0100 |
| commit | befa5c98c956bd499f741c582b96bf8d49fe7dbc (patch) | |
| tree | 66d44f912db55a7c4fe6bf1459dd182b06414809 /src/tools/rustc-workspace-hack | |
| parent | 1cfaa3431e9d8633472316c714962de960db0842 (diff) | |
chore: remove `rustc-workspace-hack`
Co-authored-by: Scott Schafer <schaferjscott@gmail.com> Co-authored-by: Eric Huss <eric@huss.org>
Diffstat (limited to 'src/tools/rustc-workspace-hack')
| -rw-r--r-- | src/tools/rustc-workspace-hack/Cargo.toml | 19 | ||||
| -rw-r--r-- | src/tools/rustc-workspace-hack/README.md | 25 | ||||
| -rw-r--r-- | src/tools/rustc-workspace-hack/lib.rs | 1 |
3 files changed, 0 insertions, 45 deletions
diff --git a/src/tools/rustc-workspace-hack/Cargo.toml b/src/tools/rustc-workspace-hack/Cargo.toml deleted file mode 100644 index 5d5d57fc9ef..00000000000 --- a/src/tools/rustc-workspace-hack/Cargo.toml +++ /dev/null @@ -1,19 +0,0 @@ -[package] -name = "rustc-workspace-hack" -version = "1.0.0" -license = 'MIT OR Apache-2.0' -description = """ -Hack for the compiler's own build system -""" -edition = "2021" - -[lib] -path = "lib.rs" - -# For documentation about what this is and why in the world these dependencies -# are appearing, see `README.md`. -[dependencies] -libc = { version = "0.2", features = ["extra_traits"] } -serde_json = { version = "1.0.31", features = ["unbounded_depth"] } -# Ensure default features of regex, which are disabled in some scenarios. -regex = { version = "1.5.6" } diff --git a/src/tools/rustc-workspace-hack/README.md b/src/tools/rustc-workspace-hack/README.md deleted file mode 100644 index 3c61470358b..00000000000 --- a/src/tools/rustc-workspace-hack/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# `rustc-workspace-hack` - -This crate is a bit of a hack to make workspaces in rustc work a bit better. -The rationale for this existence is a bit subtle, but the general idea is that -we want commands like `./x.py build src/tools/{clippy,cargo}` to share as -many dependencies as possible. - -Each invocation is a different invocation of Cargo, however. Each time Cargo -runs a build it will re-resolve the dependency graph, notably selecting -different features sometimes for each build. - -For example, let's say there's a very deep dependency like `winapi` in each of -these builds. For Cargo, `winapi` has 33 features enabled. In Clippy, however, -`winapi` has 22 features enabled. This means that building Cargo and then the -Clippy will actually build winapi twice, which in turn will build duplicates -of everything that depends on `winapi`. This is bad! - -The goal of this crate is to solve this problem and ensure that the resolved -dependency graph for all of these tools is the same in the various subsets of -each tool, notably enabling the same features of transitive dependencies. - -All tools vendored here depend on the `rustc-workspace-hack` crate on crates.io. -When on crates.io this crate is an empty crate that is just a noop. We override -it, however, in this workspace to this crate here, which means we can control -crates in the dependency graph for each of these tools. diff --git a/src/tools/rustc-workspace-hack/lib.rs b/src/tools/rustc-workspace-hack/lib.rs deleted file mode 100644 index 44425d9c15f..00000000000 --- a/src/tools/rustc-workspace-hack/lib.rs +++ /dev/null @@ -1 +0,0 @@ -// intentionally left blank |
