mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Auto merge of #6393 - dwijnand:add-an-array-of-tables-example-to-manifest-docs, r=alexcrichton
Add an array of tables example to the manifest docs Fixes #2992
This commit is contained in:
commit
cae455ec41
@ -741,6 +741,12 @@ harness = true
|
|||||||
# 2018 edition or only compiling one unit test with the 2015 edition. By default
|
# 2018 edition or only compiling one unit test with the 2015 edition. By default
|
||||||
# all targets are compiled with the edition specified in `[package]`.
|
# all targets are compiled with the edition specified in `[package]`.
|
||||||
edition = '2015'
|
edition = '2015'
|
||||||
|
|
||||||
|
# Here's an example of a TOML "array of tables" section, in this case specifying
|
||||||
|
# a binary target name and path.
|
||||||
|
[[bin]]
|
||||||
|
name = "my-cool-binary"
|
||||||
|
path = "src/my-cool-binary.rs"
|
||||||
```
|
```
|
||||||
|
|
||||||
The `[package]` also includes the optional `autobins`, `autoexamples`,
|
The `[package]` also includes the optional `autobins`, `autoexamples`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user