Skip to content

Commit cae455e

Browse files
committed
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
2 parents c66fcd5 + 83fc076 commit cae455e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/manifest.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,12 @@ harness = true
741741
# 2018 edition or only compiling one unit test with the 2015 edition. By default
742742
# all targets are compiled with the edition specified in `[package]`.
743743
edition = '2015'
744+
745+
# Here's an example of a TOML "array of tables" section, in this case specifying
746+
# a binary target name and path.
747+
[[bin]]
748+
name = "my-cool-binary"
749+
path = "src/my-cool-binary.rs"
744750
```
745751

746752
The `[package]` also includes the optional `autobins`, `autoexamples`,

0 commit comments

Comments
 (0)