Skip to content

Commit b735c7e

Browse files
authored
Add basic docs for the new aux-bin header (rust-lang#1942)
1 parent 0b6f210 commit b735c7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tests/compiletest.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,11 @@ only running the main `coverage` suite.
501501
## Building auxiliary crates
502502

503503
It is common that some tests require additional auxiliary crates to be compiled.
504-
There are two [headers](headers.md) to assist with that:
504+
There are three [headers](headers.md) to assist with that:
505505

506506
* `aux-build`
507507
* `aux-crate`
508+
* `aux-bin`
508509

509510
`aux-build` will build a separate crate from the named source file.
510511
The source file should be in a directory called `auxiliary` beside the test file.
@@ -529,6 +530,10 @@ For example, `// aux-crate:foo=bar.rs` will compile `auxiliary/bar.rs` and
529530
make it available under then name `foo` within the test.
530531
This is similar to how Cargo does dependency renaming.
531532

533+
`aux-bin` is similar to `aux-build` but will build a binary instead of a
534+
library. The binary will be available in `auxiliary/bin` relative to the working
535+
directory of the test.
536+
532537
### Auxiliary proc-macro
533538

534539
If you want a proc-macro dependency, then there currently is some ceremony

0 commit comments

Comments
 (0)