You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please recommend that package maintainers define a MSRV (package.rust-version) in their Cargo.toml. The lack of MSRV makes the lives of downstream / distro packagers harder.
Several Python packages with maturin or setuptools-rust-based build don't specify a MSRV. Their latest release have inadvertently broken backwards compatibility with Rust < 1.78. The problem is not in code. Their Rust code and dependencies build fine with older Rust versions. The incompatibility is caused by a recent change in Cargo.lock. Rust 1.83's Cargo changed the default Cargo.lock version from v3 to v4. Rust < 1.78 does recognize v4 lock files.
Cargo 1.83 (2024-11-28):
Lockfile format v4 is now the default for creating/updating a lockfile. Rust toolchains 1.78+ support lockfile v4. For compatibility with earlier MSRV, consdier setting the package.rust-version to 1.82 or earlier.
Please recommend that package maintainers define a MSRV (
package.rust-version
) in theirCargo.toml
. The lack of MSRV makes the lives of downstream / distro packagers harder.Several Python packages with
maturin
orsetuptools-rust
-based build don't specify a MSRV. Their latest release have inadvertently broken backwards compatibility with Rust < 1.78. The problem is not in code. Their Rust code and dependencies build fine with older Rust versions. The incompatibility is caused by a recent change inCargo.lock
. Rust 1.83's Cargo changed the defaultCargo.lock
version fromv3
tov4
. Rust < 1.78 does recognizev4
lock files.Cargo's changelog recommends:
Implementation:
rust-version
in your documentation https://www.maturin.rsCargo.toml
is missing MSRV?Related issues:
The text was updated successfully, but these errors were encountered: