From 83fc0760d838cf12cd58b3d71a446ecd7019d0cf Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Fri, 7 Dec 2018 10:14:41 +0100 Subject: [PATCH] Add an array of tables example to the manifest docs --- src/doc/src/reference/manifest.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index a5b40dc2b..f01a03d06 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -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`,