Remove windows-sys from the library workspace#155681
Conversation
Windows-sys isn't actually used as dlmalloc doesn't use it on any of the targets where std uses dlmalloc, but still ends up in the lockfile and thus gets vendored. This reduces the vendor size of the standard library from 93MB to 37MB.
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
|
r? @clubby789 rustbot has assigned @clubby789. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
It would be nice if we could get rid of the false dependency on windows-sys in the lockfile. That would save an additional 19MB. |
I think adding any dependency to the lockfile that could be used is an intentional choice, no? Would it be possible to |
|
There is no target for which it would actually be used. Dlmalloc only uses it on windows, but dlmalloc itself isn't used on windows. I can try a patch. |
This reduces the vendor size of the standard library from 37MB to 20MB.
|
Patching a dummy crate in seems to work. That further reduces the vendor size to 20MB. |
|
LGTM |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing cb40c25 (parent) -> 83adf7e (this PR) Test differencesShow 29 test diffsStage 1
Stage 2
Additionally, 3 doctest diffs were found. These are ignored, as they are noisy. Job group index Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 83adf7e080d0fe4f0970c00eac2976a767dbd042 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (83adf7e): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 5.4%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -3.3%, secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 497.794s -> 495.736s (-0.41%) |
Windows-sys isn't actually used as dlmalloc doesn't use it on any of the targets where std uses dlmalloc, but still ends up in the lockfile and thus gets vendored. By using a patch to replace it with an empty crate the vendor size of the standard library is reduced from 93MB to 20MB.