Add crate_type method to Rustdoc

This commit is contained in:
Guillaume Gomez 2024-05-11 20:31:07 +02:00
parent be7549f82c
commit 23e965eb68

View File

@ -107,6 +107,13 @@ impl Rustdoc {
self
}
/// Specify the crate type.
pub fn crate_type(&mut self, crate_type: &str) -> &mut Self {
self.cmd.arg("--crate-type");
self.cmd.arg(crate_type);
self
}
#[track_caller]
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
let caller_location = std::panic::Location::caller();