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

Update minimum rust version (cargo) to 1.76 #2618

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Mar 22, 2024

This should address (fix?) #2442, it blocks building with a version that doesn't support return type impl trait.

$ cargo +1.74 check
  error: package `pep508_rs v0.4.2 (/home/konsti/projects/uv/crates/pep508-rs)` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.74.1

While we should encourage our dependencies to set a msrv, if we set our rust-toolchain.toml version as cargo msrv our users on no-wheel no-installer platforms will also be fine (or at least get helpful error messages).

This should address (fix?) #2442, it blocks building with a version that doesn't support return type impl trait.

```
$ cargo +1.74 check
  error: package `pep508_rs v0.4.2 (/home/konsti/projects/uv/crates/pep508-rs)` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.74.1
```

While we should encourage our dependencies to set a msrv, if we set our rust-toolchain.toml version as cargo msrv our users on no-wheel no-installer platforms will also be fine (or at least get helpful error messages).
@konstin konstin added the error messages Messaging when something goes wrong label Mar 22, 2024
@konstin konstin requested a review from zanieb March 22, 2024 18:35
@charliermarsh charliermarsh enabled auto-merge (squash) March 22, 2024 18:39
@charliermarsh charliermarsh merged commit 95a7008 into main Mar 22, 2024
31 checks passed
@charliermarsh charliermarsh deleted the konsti/update-rust-version branch March 22, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants