-
Notifications
You must be signed in to change notification settings - Fork 271
Use explicit version of cfg-if in msrv build #362
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
Conversation
r? @sfackler |
It wasn't worth pinning cfg-if? |
I didn't have a lot of success pinning |
Ok, looks like that works out just fine! |
Cargo.toml
Outdated
@@ -45,7 +45,7 @@ kv_unstable = [] | |||
kv_unstable_sval = ["kv_unstable", "sval/fmt"] | |||
|
|||
[dependencies] | |||
cfg-if = "0.1.2" | |||
cfg-if = "=0.1.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will cause issues if log is used in a dependency graph with another crate with a non =
dependency on cfg-if. Cargo will iirc just refuse to resolve versions. If we can't just cargo update -p cfg-if --precise 0.1.9
in the MSRV build, it may just be best to bump our MSRV to whatever cfg-if uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right. I’d assumed we’d possibly just end up compiling two versions of cfg-if
.
I’ll look again at why the cargo update
path didn’t work out for me and fall back to bumping back to 1.31
.
rustfmt's failing, but r=me otherwise. Realistically, no-one's going to do the downgrade dance with cfg-if anyway... |
Just to try fix up our CI.