Skip to content

Commit d34afde

Browse files
author
Vinh Tran
committed
Add docstring for sandboxed
1 parent cba8163 commit d34afde

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

rust/private/rust.bzl

+7-3
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,13 @@ _common_attrs = {
609609
"_error_format": attr.label(
610610
default = Label("//:error_format"),
611611
),
612+
"_experimental_toolchain_generated_sysroot": attr.label(
613+
default = Label("//rust/settings:experimental_toolchain_generated_sysroot"),
614+
doc = (
615+
"Label to a boolean build setting that lets the rule knows wheter to set --sysroot to rustc" +
616+
"This flag is only relevant when used together with --@rules_rust//rust/settings:experimental_toolchain_generated_sysroot."
617+
),
618+
),
612619
"_extra_exec_rustc_flag": attr.label(
613620
default = Label("//:extra_exec_rustc_flag"),
614621
),
@@ -634,9 +641,6 @@ _common_attrs = {
634641
"_per_crate_rustc_flag": attr.label(
635642
default = Label("//:experimental_per_crate_rustc_flag"),
636643
),
637-
"_experimental_toolchain_generated_sysroot": attr.label(
638-
default = Label("@rules_rust//rust/settings:experimental_toolchain_generated_sysroot"),
639-
),
640644
"_process_wrapper": attr.label(
641645
doc = "A process wrapper for running rustc on all platforms.",
642646
default = Label("//util/process_wrapper"),

rust/private/rustc.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ def construct_arguments(
820820
build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output.
821821
force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available.
822822
skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr
823+
sandboxed (bool): Whether the action using the constructed arguments is sandboxed
823824
824825
Returns:
825826
tuple: A tuple of the following items

rust/toolchain.bzl

-7
Original file line numberDiff line numberDiff line change
@@ -797,13 +797,6 @@ rust_toolchain = rule(
797797
"This flag is only relevant when used together with --@rules_rust//rust/settings:experimental_use_global_allocator."
798798
),
799799
),
800-
"_experimental_toolchain_generated_sysroot": attr.label(
801-
default = Label("//rust/settings:experimental_toolchain_generated_sysroot"),
802-
doc = (
803-
"Label to a boolean build setting that lets the rule knows wheter to set --sysroot to rustc" +
804-
"This flag is only relevant when used together with --@rules_rust//rust/settings:experimental_toolchain_generated_sysroot."
805-
),
806-
),
807800
"_no_std": attr.label(
808801
default = Label("//:no_std"),
809802
),

0 commit comments

Comments
 (0)