Add new Rustdoc::emit method in run-make-support

This commit is contained in:
Guillaume Gomez 2025-02-26 17:13:48 +01:00
parent 98eb2e3e5a
commit 46a39f0b27

View file

@ -132,4 +132,11 @@ impl Rustdoc {
self.cmd.arg(format);
self
}
/// Specify type(s) of output files to generate.
pub fn emit<S: AsRef<str>>(&mut self, kinds: S) -> &mut Self {
let kinds = kinds.as_ref();
self.cmd.arg(format!("--emit={kinds}"));
self
}
}