Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set minimum supported Rust version to 1.71.1 #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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