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
I was trying out Bazel for rust development, and I noticed the current global migration from WORKSPACE files to MODULE.bazel ones. On the rules_rust's homepage, under bzlmod, is listed how to download and use the Rust rules, but then the instructions on how to use a specific toolchain are valid, IIUC, only for WORKSPACE files:
## For old WORKSPACE filesrust_register_toolchains(
edition="2021",
versions= [
"1.79.0"
],
)
The indentation level of that part suggests it is also valid for MODULE.bazel files, but on my machine it isn't, and looking at the examples provided by Bazel, this should be changed in something similar to
Yes, the module extension interface for managing rust toolchains is largely undocumented currently making it very confusing to try to use rules_rust with Bzlmod.
I just did some refactors to the documentation here (#3114) which basically deletes complexity in how rules_rust used to manage documentation. I'd be happy to review a PR to improve bzlmod doc and hope the recent changes make that easier to integrate!
I was trying out Bazel for rust development, and I noticed the current global migration from WORKSPACE files to MODULE.bazel ones. On the rules_rust's homepage, under bzlmod, is listed how to download and use the Rust rules, but then the instructions on how to use a specific toolchain are valid, IIUC, only for WORKSPACE files:
The indentation level of that part suggests it is also valid for MODULE.bazel files, but on my machine it isn't, and looking at the examples provided by Bazel, this should be changed in something similar to
If my understanding is right, I think it would be beneficial to update the docs, if you want I can open a PR for it 👍 Thanks!
The text was updated successfully, but these errors were encountered: