Repository navigation
Remove crates.io compiler-builtins from the library workspace #142265
Copy link
Copy link
Closed
Labels
A-compiler-builtinsArea: compiler-builtins (https://github.com/rust-lang/compiler-builtins)Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
After #141993 we should eliminate compiler-builtins from any crates that are depending on it via crates.io to remove the duplicate dependency so the patch isn't needed. Todo list, taken from the PR:
- Bump unicode-width to 0.2.0 getopts#119 released in v0.2.23
- Remove optional dependency on compiler-builtins hashbrown#625 released in v0.15.4
- Remove
compiler-builtinsfromrustc-dep-of-stddependencies stdarch#1825 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies rustc-demangle#80 released in v0.1.25 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies cfg-if#84 released in v1.0.1 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies unicode-rs/unicode-width#77 released in v0.2.1 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies dlmalloc-rs#50 (wasm, xous, sgx) released in v0.2.9 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies gimli-rs/gimli#769 released in v0.32.0 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies r-efi/r-efi#89 (efi) - Remove
compiler-builtinsfromrustc-dep-of-stddependencies r-efi/r-efi-alloc#9 (efi) - Remove
compiler-builtinsfromrustc-dep-of-stddependencies fortanix/rust-sgx#770 (sgx) - Remove
compiler-builtinsfromrustc-dep-of-stddependencies hermit-os/hermit-rs#718 (hermit) released in v0.5.2 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies bytecodealliance/wasi-rs#108 (wasi) released in v0.11.1 (we are on the 0.11.x release cycle) - Remove
compiler-builtinsfromrustc-dep-of-stddependencies gimli-rs/addr2line#345 released in v0.25.0 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies oyvindln/adler2#2 released in v2.0.1 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies BurntSushi/memchr#180 released in v2.7.5 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies Frommi/miniz_oxide#173 released in v0.8.9 - Remove
compiler-builtinsfromrustc-dep-of-stddependencies gimli-rs/object#777 released in v0.37.1 - Upgrade
ruzstd,object, andaddr2lineto the latest versions backtrace-rs#718 - Upgrade
gimlito 0.32.0 nbdd0121/unwinding#48 released in v0.2.7 - Remove the
compiler_builtinsdependency nbdd0121/unwinding#49
Updates in rust-lang/rust:
Metadata
Metadata
Assignees
Labels
A-compiler-builtinsArea: compiler-builtins (https://github.com/rust-lang/compiler-builtins)Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Activity
Update dependencies in `library/Cargo.lock`
Update dependencies in `library/Cargo.lock`
Rollup merge of rust-lang#142276 - tgross35:update-library-lockfile, …
Update dependencies in `library/Cargo.lock`
Upgrade the standard library `object` version
Upgrade the standard library `addr2line` version
Upgrade `gimli` to 0.32.0
Upgrade `gimli` to 0.32.0
Rollup merge of rust-lang#142276 - tgross35:update-library-lockfile, …
12 remaining items
Update dependencies in `library/Cargo.lock`
Upgrade the standard library `object` version
Upgrade the standard library `addr2line` version
Rollup merge of rust-lang#142276 - tgross35:update-library-lockfile, …
Rollup merge of rust-lang#142308 - tgross35:upgrade-library-object, r…
Update library dependencies
Rollup merge of rust-lang#142753 - tgross35:library-lockfile, r=Mark-…
Unrolled build for #142753
Update library dependencies
Rollup merge of rust-lang#142753 - tgross35:library-lockfile, r=Mark-…
tshepang commentedon Aug 19, 2025
should this remain open
bjorn3 commentedon Aug 19, 2025
I think the patch at
rust/library/Cargo.toml
Line 62 in 8365fcb
Also there are still crates on crates.io that depend on compiler-builtins: https://crates.io/crates/compiler_builtins/reverse_dependencies But I don't think that necessarily needs to block closing this issue.
tgross35 commentedon Aug 19, 2025
Yeah I was just waiting to remove the patch, with the recent
unwindingrelease that should be possible now. I'll put up a PR.Edit: #145622
lqd commentedon Aug 20, 2025
Fixed by #145622