@@ -239,10 +239,12 @@ rust_toolchain = rule(
239
239
"cargo" : attr .label (
240
240
doc = "The location of the `cargo` binary. Can be a direct source or a filegroup containing one item." ,
241
241
allow_single_file = True ,
242
+ cfg = "exec" ,
242
243
),
243
244
"clippy_driver" : attr .label (
244
245
doc = "The location of the `clippy-driver` binary. Can be a direct source or a filegroup containing one item." ,
245
246
allow_single_file = True ,
247
+ cfg = "exec" ,
246
248
),
247
249
"debug_info" : attr .string_dict (
248
250
doc = "Rustc debug info levels per opt level" ,
@@ -281,13 +283,15 @@ rust_toolchain = rule(
281
283
"rust_doc" : attr .label (
282
284
doc = "The location of the `rustdoc` binary. Can be a direct source or a filegroup containing one item." ,
283
285
allow_single_file = True ,
286
+ cfg = "exec" ,
284
287
),
285
288
"rust_lib" : attr .label (
286
289
doc = "The rust standard library." ,
287
290
),
288
291
"rustc" : attr .label (
289
292
doc = "The location of the `rustc` binary. Can be a direct source or a filegroup containing one item." ,
290
293
allow_single_file = True ,
294
+ cfg = "exec" ,
291
295
),
292
296
"rustc_lib" : attr .label (
293
297
doc = "The libraries used by rustc during compilation." ,
@@ -298,6 +302,7 @@ rust_toolchain = rule(
298
302
"rustfmt" : attr .label (
299
303
doc = "The location of the `rustfmt` binary. Can be a direct source or a filegroup containing one item." ,
300
304
allow_single_file = True ,
305
+ cfg = "exec" ,
301
306
),
302
307
"staticlib_ext" : attr .string (
303
308
doc = "The extension for static libraries created from rustc." ,
0 commit comments