Skip to content

Commit 23e965e

Browse files
Add crate_type method to Rustdoc
1 parent be7549f commit 23e965e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/run-make-support/src/rustdoc.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ impl Rustdoc {
107107
self
108108
}
109109

110+
/// Specify the crate type.
111+
pub fn crate_type(&mut self, crate_type: &str) -> &mut Self {
112+
self.cmd.arg("--crate-type");
113+
self.cmd.arg(crate_type);
114+
self
115+
}
116+
110117
#[track_caller]
111118
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
112119
let caller_location = std::panic::Location::caller();

0 commit comments

Comments
 (0)