2024-06-06 14:34:34 -05:00
|
|
|
use run_make_support::{htmldocck, rustdoc};
|
2024-05-23 04:32:22 -05:00
|
|
|
|
|
|
|
fn main() {
|
2024-06-06 14:34:34 -05:00
|
|
|
let out_dir = "rustdoc";
|
2024-05-23 04:32:22 -05:00
|
|
|
|
|
|
|
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();
|
|
|
|
|
2024-06-09 10:45:57 -05:00
|
|
|
htmldocck().arg(out_dir).arg("src/lib.rs").run();
|
2024-05-23 04:32:22 -05:00
|
|
|
}
|