Skip to content

Commit e29bef6

Browse files
committed
Add Alt for implied updates
1 parent cf16352 commit e29bef6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

text/3493-precise-pre-release-cargo-update.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ Put in simple terms the relationship between a pre-release and its stable releas
119119
# Rationale and alternatives
120120
[rationale-and-alternatives]: #rationale-and-alternatives
121121

122+
## One-time opt-in
123+
124+
With this proposal, pre-release is like yanked:
125+
having `[email protected]` in your `Cargo.lock` does not implicitly mean you can use `[email protected]`.
126+
To update within pre-releases, you'll have to use `--precise` again.
127+
128+
Instead, the lockfile could identify that `[email protected]` is a pre-release allow updating to any `1.2.3` pre-release.
129+
`cargo update` focuses on compatible updates and pre-releases aren't necesarrily compatible with each other
130+
(see also [RFC: Precise Pre-release Deps](https://github.com/rust-lang/rfcs/pull/3263)).
131+
Alternatively, in [future-possibilities] is `cargo update -p foo --allow-prerelease` which would be an explicit way to update.
132+
122133
## Use overrides
123134

124135
Cargo overrides can be used instead using `[patch]`.

0 commit comments

Comments
 (0)