Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions rs_bindings_from_cc/bazel_support/compile_rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,23 @@ def compile_rust(ctx, attr, src, extra_srcs, deps, crate_name, include_coverage,
compile_data_targets = depset([]),
owner = ctx.label,
),
# LINT.IfChange
rust_flags = ["-Zallow-features=custom_inner_attributes,impl_trait_in_assoc_type,register_tool,negative_impls,extern_types,arbitrary_self_types,allocator_api,cfg_sanitize"],
# LINT.ThenChange(//docs/overview/unstable_features.md)
output_hash = output_hash,
force_all_deps_direct = force_all_deps_direct,
include_coverage = include_coverage,
# LINT.IfChange
allowed_unstable_features = [
# <internal link> start
"allocator_api",
"arbitrary_self_types",
"cfg_sanitize",
"custom_inner_attributes",
"extern_types",
"impl_trait_in_assoc_type",
"negative_impls",
"register_tool",
# <internal link> end
],
# LINT.ThenChange(//docs/overview/unstable_features.md)
)

return DepVariantInfo(
Expand Down
Loading