chore(deps): use exact version for bitflags#340
Conversation
Motivation: allow building with MSRV without patching lock file
|
r? @MomoLangenstein |
|
I think you should also pin |
|
Good point, I wasn't aware
Yes, I'll do that 👍 |
That is true ... it seems that |
|
I'll merge this as-is, it's already a bit of an improvement. |
IME cargo will fail to compile rather than including multiple compatible versions of a crate in the tree, so anyone depending on |
|
@Imberflur that's only when you have that dependency in your public API. |
@torkleyy unless I'm missing something that is not the case. I created a test setup to try this and it produces an error https://github.com/Imberflur/cargo-dep-resolution-test FWIW I'm not currently running into this issue, but I expect I will likely encounter it in the future when another dependency or my code tries to take advantage of any newer features in the This might be relevant: https://github.com/rust-lang/rfcs/blob/master/text/2495-min-rust-version.md#future-work-and-extensions |
|
e.g. see nix-rust/nix#1548 |
|
Oh I see. My understanding was that Cargo can handle multiple versions of a dependency in the tree, which is the case, but with the limitation that all versions must be semver incompatible, which isn't true for bitflags... |
This reverts commit 6bff207. PR: ron-rs#340 Fixes ron-rs#347
This reverts commit 6bff207. PR: ron-rs#340 Fixes ron-rs#347
Motivation: allow building with MSRV without patching lock file - see #332
Usually this is discouraged, but
bitflagsonly provides a macro that generates code for us, so if it gets included with multiple different versions in a dependency tree it won't cause any issues.[x] I've included my change innot necesaryCHANGELOG.md