diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 67845c34ca..7fd38629ae 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -321,6 +321,11 @@ rust_doc = rule( providers = [rust_common.crate_info], mandatory = True, ), + "crate_features": attr.string_list( + doc = dedent("""\ + List of features to enable for the crate being documented. + """), + ), "html_after_content": attr.label( doc = "File to add in ``, after content.", allow_single_file = [".html", ".md"], diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl index a338518038..5c9716b85a 100644 --- a/rust/private/rustdoc_test.bzl +++ b/rust/private/rustdoc_test.bzl @@ -200,6 +200,11 @@ rust_doc_test = rule( providers = [rust_common.crate_info], mandatory = True, ), + "crate_features": attr.string_list( + doc = dedent("""\ + List of features to enable for the crate being documented. + """), + ), "deps": attr.label_list( doc = dedent("""\ List of other libraries to be linked to this library target.