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

Revert #340 #347

Closed
torkleyy opened this issue Dec 7, 2021 · 2 comments · Fixed by #361
Closed

Revert #340 #347

torkleyy opened this issue Dec 7, 2021 · 2 comments · Fixed by #361

Comments

@torkleyy
Copy link
Contributor

torkleyy commented Dec 7, 2021

The bitflags version cannot be locked as discussed after the merge of #340

Thank you @Imberflur for raising awareness to this.

@Imberflur
Copy link

Imberflur commented Dec 7, 2021

Np 🙂

The dubious nature of whether MSRV bumps count as semver breakage combined with cargo's forced unification of semver compatible versions is somewhat unfortunate here.

Hopefully future changes mentioned here https://github.com/rust-lang/rfcs/blob/master/text/2495-min-rust-version.md#future-work-and-extensions will allow cargo to not select newer versions of the crate when targeting a specific rust version.

Another alternative is creating a fork of bitflags, if its duplication in the dependency tree isn't a concern. Although the ability to deduplicate it when they are actually matching would be lost, so making cargo smart enough to work with MSRVs would be ideal.

edit: for now, as long as users maintain a Cargo.lock and/or pin bitflags in their own Cargo.toml then things should be fine wrt to sticking to a MSRV, I would expect maintaining a Cargo.lock would be necessary if other dependencies are bumping their MSRV without semver breakage but ofc I don't have an understanding of all the use cases.

@kvark
Copy link
Collaborator

kvark commented Dec 7, 2021

fwiw, we recently stumbled upon a similar problem in wgpu (not the first time...), and finally decided to adopt a policy of "MSRV bumps = breaking change". This is enforced on CI by the fact we only test on MSRV and Nightly.

torkleyy added a commit to torkleyy/ron that referenced this issue Dec 27, 2021
juntyr pushed a commit to juntyr/ron that referenced this issue Jan 28, 2022
juntyr added a commit that referenced this issue Jan 28, 2022
* revert "chore(deps): use exact version for bitflags"

This reverts commit 6bff207.
PR: #340
Fixes #347

* chore: bump msrv to 1.46.0

* chore: fix test warnings

* Switched to fxx::EPSILON and #[non_exhaustive]

Co-authored-by: Thomas Schaller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants