2024-05-08 16:50:12 +02:00
|
|
|
// Checks that if the output folder doesn't exist, rustdoc will create it.
|
|
|
|
|
2024-06-06 21:34:34 +02:00
|
|
|
use std::path::Path;
|
2024-05-08 16:50:12 +02:00
|
|
|
|
2024-06-06 21:34:34 +02:00
|
|
|
use run_make_support::rustdoc;
|
2024-07-29 08:13:50 +10:00
|
|
|
|
2024-05-08 16:50:12 +02:00
|
|
|
fn main() {
|
2024-06-06 21:34:34 +02:00
|
|
|
let out_dir = Path::new("foo/bar/doc");
|
2024-08-15 14:44:48 +02:00
|
|
|
rustdoc().input("foo.rs").out_dir(&out_dir).run();
|
2024-05-08 16:50:12 +02:00
|
|
|
assert!(out_dir.exists());
|
|
|
|
}
|