From 34a5cfb0840161b3d2593bf435cf9de5a6f545b1 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 16 Jul 2018 21:46:42 +0200 Subject: [PATCH] document new feature --- src/doc/src/reference/unstable.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index c3a29869a23..fe137b84201 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -308,3 +308,15 @@ $ cargo +nightly build -Z compile-progress Compiling utf8-ranges v1.0.0 Building [=======> ] 2/14: libc, regex, uc... ``` + +### default-run +* Original issue: [#2200](https://github.com/rust-lang/cargo/issues/2200) + +The `default-run` option in the `[project]` section of the manifest can be used +to specify a default binary picked by `cargo run`. For example, when there is +both `src/bin/a.rs` and `src/bin/b.rs`: + +```toml +[project] +default-run = "a" +```