Skip to content

Commit 43c68bc

Browse files
committed
Add opt_level to rust.repository_set
1 parent aa6e74e commit 43c68bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/extensions.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ _RUST_REPOSITORY_SET_TAG_ATTRS = {
169169
"name": attr.string(
170170
doc = "Name of the repository_set - if you're looking to replace default toolchains you must use the exact name you're replacing.",
171171
),
172+
"opt_level": attr.string_dict(
173+
doc = "Rustc optimization levels. For more details see the documentation for `rust_toolchain.opt_level`.",
174+
),
172175
"target_compatible_with": attr.label_list(
173176
doc = "List of platform constraints this toolchain produces, for the particular target_triple this call is for.",
174177
),

0 commit comments

Comments
 (0)