fix(ref): Clarify we aren't locking down target dir

This commit is contained in:
Ed Page 2024-05-07 10:04:17 +02:00
parent ec8d3ad12f
commit ed8ebc954f
1 changed files with 2 additions and 1 deletions

View File

@ -345,7 +345,8 @@ Disallowed manifest fields:
- `package.workspace`, `package.build`, `package.links`, `package.publish`, `package.autobins`, `package.autoexamples`, `package.autotests`, `package.autobenches` - `package.workspace`, `package.build`, `package.links`, `package.publish`, `package.autobins`, `package.autoexamples`, `package.autotests`, `package.autobenches`
Single-file packages maintain an out-of-line target directory by default. Single-file packages maintain an out-of-line target directory by default.
This is `$CARGO_HOME/target/<hash-of-path>`. This is implementation-defined.
Currently, it is `$CARGO_HOME/target/<hash-of-path>`.
A single-file package is accepted by cargo commands as a `--manifest-path` A single-file package is accepted by cargo commands as a `--manifest-path`
- Files are considered to have embedded manifest if they end with `.rs` or they lack an extension and are of type file - Files are considered to have embedded manifest if they end with `.rs` or they lack an extension and are of type file