-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make cargo a workspace #109133
Make cargo a workspace #109133
Conversation
Does this means that cargo will have its own |
@bors try |
⌛ Trying commit d4724e2fc45d91b6c6ccd6ce4c8ab6a4b05212bb with merge ffd9aff2c26946dbc701cdc41e080c17cc40789b... |
Exactly! |
💔 Test failed - checks-actions |
bd24787
to
5c7b56b
Compare
Failed on openssl build. I guess it's
I've made a change in cargo to include Let's @bors try again. |
⌛ Trying commit 5c7b56bde2f25a99b03bdc1d525b0d0c55afd5dc with merge 9fa7021716eaa8f3cfccf9eb2c8dfaa209f8ee8e... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
5c7b56b
to
9a7e8a1
Compare
@bors try |
⌛ Trying commit 9a7e8a1 with merge 8ea09f172814926c4c234f649b199f6aa9205307... |
💔 Test failed - checks-actions |
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #109164) made this pull request unmergeable. Please resolve the merge conflicts. |
b34783c
to
a6c6912
Compare
It is unnecessary to stream cargo JSON output.
4081b34
to
103ed0e
Compare
@bors r=ehuss rollup=never p=1 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d0f204e): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
deps: drop serde feature from url, drop rustc-workspace-hack Cargo now have it's own workspace and rustc dropped [`rustc-workspace-hack`](rust-lang/rust#109133), so no need to unify features here; drop rustc-workspace-hack. changelog: none
So Cargo now is a separate workspace from the main rustc workspace? It was already in a workspace before, after all (so I am confused by the PR description). Doesn't that mean https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json needs updating? Cc @jyn514 |
Remove rustc-workspace-hack The `rustc-workspace-hack` dependency was removed in rust-lang/rust#109133 and should no longer be needed.
I do not think that this is needed, since not many people will do cargo development in the Rustc repo, and the needed dependencies (if any) should already be set as path deps. |
Sorry, I'm not familiar with rust-analyzer settings, so I don't know. |
ah, looks like i missed cargo there - happy to take a PR adding it |
Remove rustc-workspace-hack The `rustc-workspace-hack` dependency was removed in rust-lang#109133 and should no longer be needed.
8 commits in 7bf43f028ba5eb1f4d70d271c2546c38512c9875..39116ccc9b420a883a98a960f0597f9cf87414b8
2023-04-10 16:01:41 +0000 to 2023-04-15 20:24:15 +0000
cargo clippy --fix
(Correct the bug report forcargo clippy --fix
cargo#11882)cargo logout
(Stabilizecargo logout
cargo#11950)What does this PR try to resolve?
Making cargo a workspace.
Why doing this?
rustc-workspace-hack
is primarily for sharing dependencies between rls and cargo, as rls previously depends on cargo. After rls retired, it is no longer the case sharing dependencies.windows-sys
andraw-dylib
. It currenctly blocks cargo's feature-Zgitxodie
from moving forward.Benchmark result
I've done a simple benchmark on both keeping or removing entire
rustc-workspace-hack
. It had no significant difference. Both took ~2m30s to finish./x.py build -j8 src/tools/cargo src/tools/rls src/tools/clippy src/tools/miri src/tools/rustfmt
. Environment info:A sophisticated benchmark may be needed.
Additional information
This depends on prior works from @Muscraft and @ehuss. Credits to them!