Skip to content

Commit 34a5cfb

Browse files
committed
document new feature
1 parent 04abd5e commit 34a5cfb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/doc/src/reference/unstable.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,15 @@ $ cargo +nightly build -Z compile-progress
308308
Compiling utf8-ranges v1.0.0
309309
Building [=======> ] 2/14: libc, regex, uc...
310310
```
311+
312+
### default-run
313+
* Original issue: [#2200](https://github.com/rust-lang/cargo/issues/2200)
314+
315+
The `default-run` option in the `[project]` section of the manifest can be used
316+
to specify a default binary picked by `cargo run`. For example, when there is
317+
both `src/bin/a.rs` and `src/bin/b.rs`:
318+
319+
```toml
320+
[project]
321+
default-run = "a"
322+
```

0 commit comments

Comments
 (0)