From 999cba158826e488dc6b9e56588a74fc94560dbc Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Mon, 8 Jan 2018 16:02:46 +1100 Subject: [PATCH] Recover doc for inferred directory targets First created in 6b94ed2238a3f378cfe4fda47922cef0908a942c and lost by 1271bb4de0c0e0a085be239c2418af9c673ffc87. --- src/doc/src/reference/manifest.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.30.2