-
Notifications
You must be signed in to change notification settings - Fork 24
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 the rust-version, update edition. #46
Set the rust-version, update edition. #46
Conversation
You might as well set the MSRV so you know what the minimum supported rust version is. You may as well also icrement the edition because it requires no changes and the MSRV is supported by the edition increase. I calculated the MSRV with cargo msrv.
I agree with the sentiment here; edition is straightforward. I have some questions/thoughts on MSRV, however.
Reading around, I haven't found a definitive source on best practices w.r.t. MSRV; in particular in this case, the
With the Also, I see that you modified this PR to move the MSRV to |
I was using an older version of Result:
Considered (min … max): Rust 1.31.1 … Rust 1.81.0
Search method: bisect
MSRV: 1.67.1
Target: x86_64-unknown-linux-gnu when using the latest version. https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field |
Ah, I had not done a Which goes back to my prior thoughts: I don't think there is a consensus if bumping MSRV should be a semver compatibility break. From Which is all to say I am fine adding MSRV here, but I'm not sure what the best practice should be. I would like to make it "truly minimal", or at least keep it to I've opened a urlo topic to solicit some community feedback on the general question. |
Per discussion on [this urlo thread](https://users.rust-lang.org/t/best-community-practices-for-msrv/119566), there is no firm rule on utilization of MSRV. Here, we will opt to advertise a MSRV that is compatible w/ `reqwest`'s current MSRV, and compatible with this crate's current dependencies. Note that the dependency `time` must be `0.3.20` or earlier to satisfy this MSRV; as MSRV increase is not considered a semver breaking change, we do not restrict our specification of the `time` dependency to uphold any guarantee here :(.
Thanks for the contribution here; in the end the discussion on urlo led me to believe there isn't a best practice here, really. I opted to target |
You might as well set the MSRV so you know what the minimum supported rust version is. You may as well also icrement the edition because it requires no changes and the MSRV is supported by the edition increase.
I calculated the MSRV with cargo msrv.