Closed
Description
Original Issue: #2200
Implementation PR: #5710
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#default-run
Summary
The default-run
feature provides a way to specify which binary will be run by default by cargo run
when there are multiple binaries.
[package]
default-run = "foo"
Unresolved issues
- The error message when
default-run
specifies a non-existing binary is not great (it just says "no bin target named …"). I think it should point the user to thedefault-run
definition.