Add new Rustdoc::emit method in run-make-support
This commit is contained in:
parent
98eb2e3e5a
commit
46a39f0b27
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue