From: Peter Marheine Date: Mon, 8 Jan 2018 05:02:46 +0000 (+1100) Subject: Recover doc for inferred directory targets X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~55^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=999cba158826e488dc6b9e56588a74fc94560dbc;p=cargo.git Recover doc for inferred directory targets First created in 6b94ed2238a3f378cfe4fda47922cef0908a942c and lost by 1271bb4de0c0e0a085be239c2418af9c673ffc87. --- diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 71aede543..94680d071 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -557,7 +557,8 @@ each file you want to build. Your project can optionally contain folders named `examples`, `tests`, and `benches`, which Cargo will treat as containing examples, -integration tests, and benchmarks respectively. +integration tests, and benchmarks respectively. Analogous to `bin` targets, they +may be composed of single files or directories with a `main.rs` file. ```shell ▾ src/ # directory containing source files @@ -569,10 +570,16 @@ integration tests, and benchmarks respectively. main.rs ▾ examples/ # (optional) examples *.rs +▾ */ # (optional) directories containing multi-file examples + main.rs ▾ tests/ # (optional) integration tests *.rs +▾ */ # (optional) directories containing multi-file tests + main.rs ▾ benches/ # (optional) benchmarks *.rs +▾ */ # (optional) directories containing multi-file benchmarks + main.rs ``` To structure your code after you've created the files and folders for your