17 lines
445 B
Rust
17 lines
445 B
Rust
use run_make_support::{htmldocck, rustdoc, tmp_dir};
|
|
|
|
fn main() {
|
|
let out_dir = tmp_dir().join("rustdoc");
|
|
|
|
rustdoc()
|
|
.input("src/lib.rs")
|
|
.crate_name("foobar")
|
|
.crate_type("lib")
|
|
// This is intentionally using `-o` option flag and not the `output()` method.
|
|
.arg("-o")
|
|
.arg(&out_dir)
|
|
.run();
|
|
|
|
assert!(htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success());
|
|
}
|