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