Skip to content

Commit 8ce1563

Browse files
committed
Alt: cargo update incompat
1 parent c1fe920 commit 8ce1563

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ This would allow any version to masquerade as another.
124124
Without the concept of compatible pre-releases there would be no path forward towards being able to express pre-release requirements in library crates.
125125
This is explored in [future-possibilities].
126126

127+
## Change the version in `Cargo.toml` rather than `Cargo.lock` when using `--precise`
128+
129+
This [accepted proposal](https://github.com/rust-lang/cargo/issues/12425) allows cargo to update a projects `Cargo.toml` when the version is incompatible.
130+
131+
The issue here is that cargo will not unify a pre-release version with a stable version.
132+
If the crate being updated is used pervasively this will more than likely cause a resolver error.
133+
This makes this alternative unfit for our [motivation].
134+
127135
## Pre-releases in `Cargo.toml`
128136

129137
Another alternative would be to resolve pre-release versions in `Cargo.toml`s even when another dependency specifies a stable version.

0 commit comments

Comments
 (0)