Skip to content

Set minimum supported Rust version to 1.71.1#58

Open
tiran wants to merge 1 commit intohuggingface:mainfrom
tiran:msrv
Open

Set minimum supported Rust version to 1.71.1#58
tiran wants to merge 1 commit intohuggingface:mainfrom
tiran:msrv

Conversation

@tiran
Copy link

@tiran tiran commented Jan 22, 2025

Add rust-version to Cargo.toml to ensure that cargo from Rust >= 1.83 does not bump Cargo.lock to file format v4. 1.71.1 is oldest Rust toolchain that can compile the package and its dependencies:

  • package writeable v0.5.5 cannot be built because it requires rustc 1.67 or newer
  • package mio v1.0.3 cannot be built because it requires rustc 1.70 or newer
  • package zerofrom v0.1.5 cannot be built because it requires rustc 1.71.1 or newer

GHA tests are now building+testing with minimum version and latest stable version of the Rust toolchain.

Fixes: #55

Add `rust-version` to Cargo.toml to ensure that `cargo` from Rust >= 1.83
does not bump `Cargo.lock` to file format v4. 1.71.1 is oldest Rust
toolchain that can compile the package and its dependencies:

* package `writeable v0.5.5` cannot be built because it requires rustc 1.67 or newer
* package `mio v1.0.3` cannot be built because it requires rustc 1.70 or newer
* package `zerofrom v0.1.5` cannot be built because it requires rustc 1.71.1 or newer

GHA tests are now building+testing with minimum version and latest stable
version of the Rust toolchain.

Fixes: huggingface#55
Signed-off-by: Christian Heimes <christian@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cargo.lock version=4 breaks backward compatibility with Rust < 1.78

1 participant