Skip to content

Commit 46a39f0

Browse files
Add new Rustdoc::emit method in run-make-support
1 parent 98eb2e3 commit 46a39f0

File tree

1 file changed

+7
-0
lines changed
  • src/tools/run-make-support/src/external_deps

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,11 @@ impl Rustdoc {
132132
self.cmd.arg(format);
133133
self
134134
}
135+
136+
/// Specify type(s) of output files to generate.
137+
pub fn emit<S: AsRef<str>>(&mut self, kinds: S) -> &mut Self {
138+
let kinds = kinds.as_ref();
139+
self.cmd.arg(format!("--emit={kinds}"));
140+
self
141+
}
135142
}

0 commit comments

Comments
 (0)