mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
use [[bin]] instead of [[executable]]
This commit is contained in:
parent
c5522e6178
commit
5790b403a5
@ -7,7 +7,7 @@ The `Cargo.toml` file contains several top-level sections:
|
||||
* `[project]`: project-specific details, such as name, version and author
|
||||
* `[[lib]]`: information about the main library file, if one exists. By
|
||||
default, the main library file is `src/<package-name>.rs`
|
||||
* `[[executable]]`: optionally repeated information about executables
|
||||
* `[[bin]]`: optionally repeated information about executables
|
||||
that the project is generating. This can both be used for projects
|
||||
that primarily build executables, as well as projects that contain
|
||||
utility executables (such as an HTTP library that comes with a web
|
||||
@ -53,9 +53,9 @@ Note that we plan to support multiple `Cargo.toml` files in Cargo's git
|
||||
support, so you don't have to have a separate git repository per
|
||||
library.
|
||||
|
||||
## The `[[executable]]` Section
|
||||
## The `[[bin]]` Section
|
||||
|
||||
The `executable` section is optionally repeated. It is designed for
|
||||
The `bin` section is optionally repeated. It is designed for
|
||||
projects whose main raison d'être is a single executable, or for projects
|
||||
that want to provide utility executables alongside a primary library.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user