@@ -82,6 +82,7 @@ rules_rust = use_extension("@rules_rs//rs/experimental:rules_rust.bzl", "rules_r
8282rules_rust .patch (
8383 patches = [
8484 "//patches:rules_rust_windows_gnullvm_build_script.patch" ,
85+ "//patches:rules_rust_repository_set_exec_constraints.patch" ,
8586 ],
8687 strip = 1 ,
8788)
@@ -96,6 +97,34 @@ nightly_rust.toolchain(
9697 dev_components = True ,
9798 edition = "2024" ,
9899)
100+ # Keep Windows exec tools on MSVC so Bazel helper binaries link correctly, but
101+ # lint crate targets as `windows-gnullvm` to preserve the repo's actual cfgs.
102+ nightly_rust .repository_set (
103+ name = "rust_windows_x86_64" ,
104+ edition = "2024" ,
105+ exec_triple = "x86_64-pc-windows-msvc" ,
106+ exec_compatible_with = [
107+ "@platforms//cpu:x86_64" ,
108+ "@platforms//os:windows" ,
109+ "@rules_rs//rs/experimental/platforms/constraints:windows_msvc" ,
110+ ],
111+ target_compatible_with = [
112+ "@platforms//cpu:x86_64" ,
113+ "@platforms//os:windows" ,
114+ "@rules_rs//rs/experimental/platforms/constraints:windows_msvc" ,
115+ ],
116+ target_triple = "x86_64-pc-windows-msvc" ,
117+ versions = ["nightly/2025-09-18" ],
118+ )
119+ nightly_rust .repository_set (
120+ name = "rust_windows_x86_64" ,
121+ target_compatible_with = [
122+ "@platforms//cpu:x86_64" ,
123+ "@platforms//os:windows" ,
124+ "@rules_rs//rs/experimental/platforms/constraints:windows_gnullvm" ,
125+ ],
126+ target_triple = "x86_64-pc-windows-gnullvm" ,
127+ )
99128use_repo (nightly_rust , "rust_toolchains" )
100129
101130toolchains = use_extension ("@rules_rs//rs/experimental/toolchains:module_extension.bzl" , "toolchains" )
0 commit comments