about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-with-short-out-dir-option/rmake.rs
blob: 49df3bedc8496505bc4c43ecbd2669a812674982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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 `-o` option flag and not the `output()` method.
        .arg("-o")
        .arg(&out_dir)
        .run();

    htmldocck().arg(out_dir).arg("src/lib.rs").run();
}