@@ -1191,13 +1191,12 @@ fn main() {}
1191
1191
```
1192
1192
1193
1193
A user may optionally specify a manifest in a ` cargo ` code fence in a module-level comment, like:
1194
- ``` rust
1194
+ ```` rust
1195
1195
#! / usr / bin / env - S cargo + nightly - Zscript
1196
-
1197
- // ! ```cargo
1198
- // ! [dependencies]
1199
- // ! clap = { version = "4.2", features = ["derive"] }
1200
- // ! ```
1196
+ ```cargo
1197
+ [dependencies ]
1198
+ clap = { version = " 4.2" , features = [" derive" ] }
1199
+ ```
1201
1200
1202
1201
use clap :: Parser ;
1203
1202
@@ -1212,7 +1211,7 @@ fn main() {
1212
1211
let args = Args :: parse ();
1213
1212
println! (" {:?}" , args );
1214
1213
}
1215
- ```
1214
+ ````
1216
1215
1217
1216
### Single-file packages
1218
1217
@@ -1225,22 +1224,8 @@ Single-file packages may be selected via `--manifest-path`, like
1225
1224
` cargo test --manifest-path foo.rs ` . Unlike ` Cargo.toml ` , these files cannot be auto-discovered.
1226
1225
1227
1226
A single-file package may contain an embedded manifest. An embedded manifest
1228
- is stored using ` TOML ` in a markdown code-fence with ` cargo ` at the start of the
1229
- infostring inside a target-level doc-comment. It is an error to have multiple
1230
- ` cargo ` code fences in the target-level doc-comment. We can relax this later,
1231
- either merging the code fences or ignoring later code fences.
1232
-
1233
- Supported forms of embedded manifest are:
1234
- `````` rust
1235
- // ! ```cargo
1236
- // ! ```
1237
- ``````
1238
- `````` rust
1239
- /*!
1240
- * ```cargo
1241
- * ```
1242
- */
1243
- ``````
1227
+ is stored using ` TOML ` in rust "frontmatter", a markdown code-fence with ` cargo `
1228
+ at the start of the infostring at the top of the file.
1244
1229
1245
1230
Inferred / defaulted manifest fields:
1246
1231
- ` package.name = <slugified file stem> `
0 commit comments