Add --out-dir flag for rustdoc
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
4919988fe1
commit
03be3e21b1
11 changed files with 57 additions and 5 deletions
8
src/test/run-make/rustdoc-with-out-dir-option/Makefile
Normal file
8
src/test/run-make/rustdoc-with-out-dir-option/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
|
||||
|
||||
all:
|
||||
$(RUSTDOC) src/lib.rs --crate-name foobar --crate-type lib --out-dir $(OUTPUT_DIR)
|
||||
|
||||
$(HTMLDOCCK) $(OUTPUT_DIR) src/lib.rs
|
||||
2
src/test/run-make/rustdoc-with-out-dir-option/src/lib.rs
Normal file
2
src/test/run-make/rustdoc-with-out-dir-option/src/lib.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
8
src/test/run-make/rustdoc-with-output-option/Makefile
Normal file
8
src/test/run-make/rustdoc-with-output-option/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
|
||||
|
||||
all:
|
||||
$(RUSTDOC) src/lib.rs --crate-name foobar --crate-type lib --output $(OUTPUT_DIR)
|
||||
|
||||
$(HTMLDOCCK) $(OUTPUT_DIR) src/lib.rs
|
||||
2
src/test/run-make/rustdoc-with-output-option/src/lib.rs
Normal file
2
src/test/run-make/rustdoc-with-output-option/src/lib.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
-include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
|
||||
|
||||
all:
|
||||
$(RUSTDOC) src/lib.rs --crate-name foobar --crate-type lib -o $(OUTPUT_DIR)
|
||||
|
||||
$(HTMLDOCCK) $(OUTPUT_DIR) src/lib.rs
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
|
|
@ -0,0 +1 @@
|
|||
// compile-flags: --output ./foo
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
error: cannot use both 'out-dir' and 'output' at once
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue