Skip to content

Commit 4fb9d5f

Browse files
committed
Fill in missing pieces about targets
1 parent 268cdb1 commit 4fb9d5f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

text/0000-erfc-post-build-contexts.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,19 @@ test --framework test`, `cargo test --framework quickcheck`, and `cargo test --f
243243
test` _not_ run doctests. If both a framework and a set exists with a
244244
given name, the set takes precedence.
245245

246-
`[[test]]` and `[[example]]` in a crate's `Cargo.toml` add targets to the
247-
`test` and `example` frameworks respectively.
246+
247+
You can also add targets to a framework a la `[[test]]` and `[[example]]` via `[[testing.target]]`
248+
249+
```toml
250+
[[testing.target]]
251+
framework = fuzz
252+
path = "foo.rs"
253+
name = "foo"
254+
```
255+
256+
`[[test]]` and `[[example]]` in a crate's `Cargo.toml` are aliases of
257+
`[[testing.target]] framework = test` and `[[testing.target]] framework = example`
258+
respectively. This also goes for `[[bench]]` if we decide to keep that around.
248259

249260
## To be designed
250261

0 commit comments

Comments
 (0)