diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index c1fb0fa967..6b9b082b6d 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -885,7 +885,10 @@ _rust_binary_attrs = { cfg = "exec", allow_single_file = True, ), - "out_binary": attr.bool(), + "out_binary": attr.bool( + doc = "Force a target, regardless of it's `crate_type`, to always mark the file as executable.", + default = False, + ), } rust_binary = rule(