]> git.proxmox.com Git - cargo.git/commitdiff
Add an array of tables example to the manifest docs
authorDale Wijnand <dale.wijnand@gmail.com>
Fri, 7 Dec 2018 09:14:41 +0000 (10:14 +0100)
committerDale Wijnand <dale.wijnand@gmail.com>
Fri, 7 Dec 2018 09:15:29 +0000 (10:15 +0100)
src/doc/src/reference/manifest.md

index a5b40dc2b422fdc02a3ccc86f3eb667d3a1c0c98..f01a03d0620e382f10c0580026ecad8f089c3577 100644 (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`,