rust/tests/run-make/rustdoc-with-output-option/rmake.rs
2024-06-11 09:14:28 +00:00

17 lines
401 B
Rust

use run_make_support::{htmldocck, rustdoc};
fn main() {
let out_dir = "rustdoc";
rustdoc()
.input("src/lib.rs")
.crate_name("foobar")
.crate_type("lib")
// This is intentionally using `--output` option flag and not the `output()` method.
.arg("--output")
.arg(&out_dir)
.run();
htmldocck().arg(out_dir).arg("src/lib.rs").run();
}