Skip to content

Remove the compiler_builtins dependency #49

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

Merged
merged 1 commit into from
Jun 14, 2025

Conversation

tgross35
Copy link
Contributor

Since 1 the crates.io version of compiler-builtins is no longer needed as part of rustc-dep-of-std, so remove it here.

@@ -45,8 +44,7 @@ panic-handler = ["print", "panic"]
panic-handler-dummy = []
system-alloc = []
default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr-dl", "fde-registry"]
rustc-dep-of-std = ["core", "gimli/rustc-dep-of-std", "compiler_builtins"]
compiler_builtins = ["dep:compiler_builtins"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can leave the feature as a nop if you prefer, but I doubt anybody is using it

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I think these are automatically added by cargo when moving from 2021 to 2024 edition. Can you also remove the core feature and replace rustc-dep-of-std to just depend on dep:core?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, got rid of it now

Since [1] the crates.io version of `compiler-builtins` is no longer
needed as part of `rustc-dep-of-std`, so remove it here.

[1]: rust-lang/rust#142265
@tgross35 tgross35 force-pushed the remove-compiler-builtins branch from 5654d8e to b620a77 Compare June 14, 2025 17:04
@nbdd0121 nbdd0121 merged commit 94c1cd5 into nbdd0121:trunk Jun 14, 2025
5 checks passed
@tgross35 tgross35 deleted the remove-compiler-builtins branch June 14, 2025 17:46
@nbdd0121
Copy link
Owner

Do you need a new version to be published?

@tgross35
Copy link
Contributor Author

No hurry for this one, the only thing that should currently be broken without it is building xous on xargo - who knows if that worked anyway :)

@tgross35
Copy link
Contributor Author

tgross35 commented Jun 24, 2025

Actually, mind doing a release at some point? Looks like unwinding might wind up in more crate graphs soon for cranelift's unwinding support. nvm, it uses features named unwinding but they don't actually enable the unwinding dep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants