Skip to content

Commit

Permalink
add more precision to the effects of --bin flag (#1607)
Browse files Browse the repository at this point in the history
`cargo build` will include *all* binaries by default, so it is misleading to say
"default or other binaries".

By using the the word `only` as an adverb, we implicitly communicating this
while also explaining the side effects of `--bin` correctly.
  • Loading branch information
augustfengd authored Sep 30, 2022
1 parent 7a4484f commit 6f2703b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ foo
└── my_other_bin.rs
```

To tell `cargo` to compile or run this binary as opposed to the default or other
binaries, we just pass `cargo` the `--bin my_other_bin` flag, where `my_other_bin`
is the name of the binary we want to work with.
To tell `cargo` to only compile or run this binary, we just pass `cargo` the
`--bin my_other_bin` flag, where `my_other_bin` is the name of the binary we
want to work with.

In addition to extra binaries, `cargo` supports [more features] such as
benchmarks, tests, and examples.
Expand Down

0 comments on commit 6f2703b

Please sign in to comment.