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
This attribute can be set to the label of a target that provides
`UnstableRustFeaturesInfo`, which maps a label to a set of unstable
features allowed for that label. The intent is to provide a way to
centrally manage the use of unstable features, without having to use
`-Zallow-features=` manually in `rustc_flags` for every affected target.
Co-authored-by: Krasimir Georgiev <krasimir@google.com>
"static_archive": "Optional[File]: the allocator library archive (typically .a file).",
230
230
},
231
231
)
232
+
233
+
UnstableRustFeaturesInfo=provider(
234
+
doc="UnstableRustFeaturesInfo contains a function mapping build targets to unstable features approved for use. Only works on nightly toolchains. May return the special value \"__all__\" to allow all unstable features for the target.",
235
+
fields= {"unstable_rust_features_config": "Callable[[Label], List[string]] Returns a list of unstable features approved for use for the given build target."},
"""Builds an Args object containing common rustc flags
938
949
939
950
Args:
@@ -969,6 +980,7 @@ def construct_arguments(
969
980
skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr
970
981
require_explicit_unstable_features (bool): Whether to require all unstable features to be explicitly opted in to using `-Zallow-features=...`.
971
982
error_format (str, optional): Error format to pass to the `--error-format` command line argument. If set to None, uses the "_error_format" entry in `attr`.
983
+
allowed_unstable_rust_features (list, optional): List of unstable Rust language features allowed for this target.
0 commit comments