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

chore: align differently used Rust versions #658

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

augustoccesar
Copy link
Contributor

@augustoccesar augustoccesar commented Jan 14, 2025

Summary

In an attempt to fix that, instead of relying on stable and nightly, we can
instead make it explicit which versions of Rust we want to use.

The proposed solution here is:

  • Use 1.82 for formatting, Clippy and for running cargo make binaries.
  • Use 1.78 as the MSRV, running tests and build.
  • nightly-2024-10-18 for cargo-public-api (as per recommended on docs)

Why 1.82.0? Just because an arbitrary latest version - 2 (latest 1.82). But we can choose another one
if we prefer.

With this bump to the rustfmt, the generated files need to be update as well. But the only change is the order
of the import to Serde Serialize/Deserialize.

Hopefully this should stop workflows from randomly failing when a new version of stable/nightly comes out, like on #656

Checklist

@augustoccesar augustoccesar changed the title Augustoccesar/align rust versions chore: align rust versions Jan 14, 2025
@augustoccesar augustoccesar changed the title chore: align rust versions chore: align different used Rust versions Jan 14, 2025
@augustoccesar augustoccesar changed the title chore: align different used Rust versions chore: align differently used Rust versions Jan 14, 2025
Currently, new Rust releases tend to break the workflows.
In an attempt to fix that, instead of relying on stable and nightly, we can
instead make it explicit which versions of Rust we want to use.

The proposed solution here is:
- Use 1.82 for formatting, Clippy and for running cargo make binaries.
- Use 1.78 as the MSRV and for running tests.
- nightly-2024-10-18 for cargo-public-api (as per recommended [on docs](https://github.com/cargo-public-api/cargo-public-api))

Why 1.82.0? Just because latest - 2 (latest 1.82). But we can choose another one
if we prefer.
@augustoccesar augustoccesar force-pushed the augustoccesar/align-rust-versions branch from 1805939 to 4a9bf2f Compare January 14, 2025 15:07
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.

1 participant