Skip to content
Merged
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
12 changes: 12 additions & 0 deletions rust/private/rustdoc_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def _rust_doc_test_impl(ctx):
"--test",
]

rustdoc_flags.extend(ctx.attr.rustdoc_flags)

action = rustdoc_compile_action(
ctx = ctx,
toolchain = toolchain,
Expand Down Expand Up @@ -216,6 +218,16 @@ rust_doc_test = rule(
cfg = "exec",
providers = [rust_common.crate_info],
),
"rustdoc_flags": attr.string_list(
doc = dedent("""\
List of flags passed to `rustdoc`.
These strings are subject to Make variable expansion for predefined
source/output path variables like `$location`, `$execpath`, and
`$rootpath`. This expansion is useful if you wish to pass a generated
file of arguments to rustc: `@$(location //package:target)`.
"""),
),
"_process_wrapper": attr.label(
doc = "A process wrapper for running rustdoc on all platforms",
cfg = "exec",
Expand Down