@@ -1477,13 +1477,12 @@ fn main() {}
1477
1477
` ` `
1478
1478
1479
1479
A user may optionally specify a manifest in a ` cargo` code fence in a module - level comment, like:
1480
- ` ` ` rust
1480
+ ` ` ` ` rust
1481
1481
#! / usr/ bin/ env - S cargo + nightly - Zscript
1482
-
1483
- //! ` ` ` cargo
1484
- // ! [dependencies]
1485
- // ! clap = { version = "4.2", features = ["derive"] }
1486
- // ! ```
1482
+ ` ` ` cargo
1483
+ [dependencies]
1484
+ clap = { version = "4.2", features = ["derive"] }
1485
+ ` ` `
1487
1486
1488
1487
use clap:: Parser;
1489
1488
@@ -1498,7 +1497,7 @@ fn main() {
1498
1497
let args = Args:: parse ();
1499
1498
println! (" {:?}" , args);
1500
1499
}
1501
- ` ` `
1500
+ ` ` ` `
1502
1501
1503
1502
### Single- file packages
1504
1503
@@ -1511,22 +1510,8 @@ Single-file packages may be selected via `--manifest-path`, like
1511
1510
`cargo test --manifest-path foo.rs`. Unlike `Cargo.toml`, these files cannot be auto-discovered.
1512
1511
1513
1512
A single-file package may contain an embedded manifest. An embedded manifest
1514
- is stored using ` TOML ` in a markdown code-fence with ` cargo` at the start of the
1515
- infostring inside a target-level doc-comment. It is an error to have multiple
1516
- ` cargo` code fences in the target-level doc-comment. We can relax this later,
1517
- either merging the code fences or ignoring later code fences.
1518
-
1519
- Supported forms of embedded manifest are:
1520
- ` ` ` ` ` ` rust
1521
- //! ` ` ` cargo
1522
- // ! ```
1523
- ` ` ` ` ` `
1524
- ` ` ` ` ` ` rust
1525
- /* !
1526
- * ```cargo
1527
- * ```
1528
- */
1529
- ` ` ` ` ` `
1513
+ is stored using `TOML` in rust "frontmatter", a markdown code-fence with `cargo`
1514
+ at the start of the infostring at the top of the file.
1530
1515
1531
1516
Inferred / defaulted manifest fields:
1532
1517
- `package.name = <slugified file stem>`
0 commit comments