Skip to content

Clarify MSRV policy #39

@svartalf

Description

@svartalf

Latest 0.4.1 release broke support for older Rust versions compared to 0.4.0, for example, accessing enum variants via Self were not available for Rust 1.36.0:

rust-hex/src/error.rs

Lines 26 to 30 in 78359a8

Self::InvalidHexCharacter { c, index } => {
write!(f, "Invalid character {:?} at position {}", c, index)
}
Self::OddLength => write!(f, "Odd number of digits"),
Self::InvalidStringLength => write!(f, "Invalid string length"),

In my case this version of hex were used as a dependency in the Cargo.toml,

[dependencies]
hex = "0.4.0"

and after the new release, cargo automatically started using 0.4.1 as they are assumed to be compatible.

Generally it seems unexpected to update MSRV (Minimal Supported Rust Version) in the patch versions, so it would be nice to clarify your policy on the compiler versions support.
Usual options are either to test specific Rust version in the CI workflow or to put a note in the README file that this project is compatible only with the latest stable Rust version.

EDIT: this discussion might be interesting too.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions