fix(ref): Be more explicit about auto behavior

This commit is contained in:
Ed Page 2024-01-19 19:23:30 -06:00
parent b1b8f2b601
commit 5efca85292
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ Users may pass
## `cargo publish`
We will add `"auto"` for `package.rust-version`.
On `cargo publish`, `"auto"` in `Cargo.toml` will be replaced by `rustc --version`.
On `cargo publish` / `cargo package`, the generated `*.crate`s `Cargo.toml` will have `"auto"` replaced with `rustc --version`.
If `rustc --version` is a pre-release, it will be left as unspecified.
`cargo new` will include `package.rust-version = "auto"`.