-
Notifications
You must be signed in to change notification settings - Fork 406
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
Allow rust toolchain repositories from custom repo rules #1019
Comments
If you can't make it so that rules_rust/crate_universe/defs.bzl Line 221 in 53b1de6
rules_rust/crate_universe/private/util.bzl Lines 137 to 138 in 53b1de6
|
Here is my diff. Let me know if you would like a PR.
|
A PR would be great if you wouldn't mind! Also, let's include the Thanks! |
This change allows `crate_universe` to use a custom repo for the rust toolchain. I.e. suppose that `cargo` and `rustc` come from a custom repo rule and have different paths inside the repo rule (compared to the standard "upstream") Fixes #1019
If I use some non-standard packaging system and thus have a custom repo rules that pull rust binaries (rustc, cargo), I would like to be able to configure the
rust_toolchain_repository_proxy
(or otherwise) to use this other repo rule.My current workaround is to:
rust_toolchain
which uses the artefacts from the custom repo rule. This is needed for using rust in bazel outside of the crate_universe (i.e. not important to this issue).crate_universe
to accept a mapping from tool to path.crate_universe
as:The text was updated successfully, but these errors were encountered: