about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-with-output-option/rmake.rs
blob: 2c1b76f5b9cf8e6b1413555fb7de07769056df8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ needs-target-std

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();
}