You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These directories account for 30MB combined of 53MB total for the rust-src component (unpacked size) and are only necessary for testing stdarch, not building. Excluding these directory may need excluding stdarch/Cargo.toml too as they are part of the stdarch workspace.
The text was updated successfully, but these errors were encountered:
…r=Mark-Simulacrum
Omit stdarch test crates from the rust-src component
These crates aren't necessary for building the standard library. This saves 30MB of disk space.
Fixesrust-lang#94906
Omit stdarch workspace from rust-src
The path `library/stdarch/crates/Cargo.toml` does not exist.
In Rust 1.61.0, `rust-src` still includes `src/rust/library/stdarch/Cargo.toml` (but not `stdarch-verify`), which includes
```toml
[workspace]
members = [
"crates/stdarch-verify"
```
This didn't show up when testing with `-Zbuild-std` in rust-lang#94907 since the [standard list of crates](https://github.com/rust-lang/cargo/blob/f624095e1c98228a74a165ddb702078c0dd8b81e/src/cargo/core/compiler/standard_lib.rs#L26-L30) to include when building `std` does not include `stdarch`, but it will show up if a user explicitly requests `stdarch`. Or, perhaps more importantly, because of rust-lang#95736, many editors (like IntelliJ) won't treat the root of `rust-src` as a workspace, and will instead recurse into all the sub-crates directly, which then includes `stdarch`.
Also related to rust-lang#94906.
These directories account for 30MB combined of 53MB total for the rust-src component (unpacked size) and are only necessary for testing stdarch, not building. Excluding these directory may need excluding
stdarch/Cargo.toml
too as they are part of the stdarch workspace.The text was updated successfully, but these errors were encountered: