Add an array of tables example to the manifest docs

This commit is contained in:
Dale Wijnand 2018-12-07 10:14:41 +01:00
parent 34610eb076
commit 83fc0760d8
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF

View File

@ -741,6 +741,12 @@ harness = true
# 2018 edition or only compiling one unit test with the 2015 edition. By default
# all targets are compiled with the edition specified in `[package]`.
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`,