fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
18180a32
main
1module ( name = "aliased_toolchains" ) 2 3bazel_dep ( name = "rules_rust" , version = "0.0.0" ) 4local_path_override ( 5module_name = "rules_rust" , 6path = "../.." , 7) 8 9rust = use_extension ( "@rules_rust//rust:extensions.bzl" , "rust" ) 10rust . toolchain ( 11aliases = { 12"rust_linux_x86_64__x86_64-unknown-linux-gnu__stable" : "rust_linux" , 13"rustfmt_nightly-2024-10-17__x86_64-pc-windows-msvc" : "rustfmt_win" , 14}, 15edition = "2021" , 16rustfmt_version = "nightly/2024-10-17" , 17) 18 19# Ensure the repos can be used directly and via the hub. 20use_repo ( rust , "rust_linux" , "rust_toolchains" , "rustfmt_win" ) 21 22register_toolchains ( "@rust_toolchains//:rust_linux" , "@rust_toolchains//:rustfmt_win" )