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
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: