-
Notifications
You must be signed in to change notification settings - Fork 402
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
Replace Targets and lists of files in rust_toolchain
with depsets
#1109
Conversation
Not sure if this is good toolchain hygiene or not to try to reduce the toolchain values to files and depsets. It feels like it but happy to learn better practices. Also, not sure if this should have an incompatibility flag. Happy to add that as well if the change makes sense. |
rust_toolchain
with depsetsrust_toolchain
with depsets
In general, why people end up using |
@hlopko I have the changes ready, just want to double check they won't introduce a regression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need an incompatible flag here, because the actual API of the Rust ToolchainInfo
is only used by the implementation of rustc_compile_action
. Thanks for this change! Only nits remaining.
This reverts commit 914d159.
…azelbuild#1109) * Replace lists of files and Targets in `rust_toolchain` with depsets * Use `find_sysroot` helper. * Simply use `rust_std` files directly * Revert "Use `find_sysroot` helper." This reverts commit 914d159. * files
This should simplify the API of
rust_toolchain
and help avoid confusion for users defining their own toolchains and rules.