Fix compilation on MSRV (1.37)#112
Fix compilation on MSRV (1.37)#112yotamofek wants to merge 2 commits intorayon-rs:mainfrom yotamofek:msrv
Conversation
|
@jswrenn continuing the discussion we had here, this is what happens when building the latest ➜ either git:(main) rm Cargo.lock
➜ either git:(main) cargo +1.37 build --all-features
warning: unused manifest key: package.rust-version
Updating crates.io index
error: failed to download `proc-macro2 v1.0.93`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/home/yotam/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.93/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
supported edition values are `2015` or `2018`, but `2021` is unknown |
|
FWIW, without the |
I think that's fine. IIRC
I would reject this fix (locking versions) regardless, mainly for that reason. My general preference for MSRV CI is to either manually |
cuviper
left a comment
There was a problem hiding this comment.
I'm just adding a review to formally NAK the current state.
|
Good, I hoped that raising the MSRV would be the outcome. Let me pull up a PR to do that real quick! |
|
Ah yes, didn't even notice this: either/.github/workflows/ci.yml Lines 44 to 47 in ef94c4e |
Latest versions of
serde_derive,synandproc_macro2have all raised the MSRV to be incompatible witheither's MSRV, which is at 1.37.This fixes compilation on MSRV (i.e.
cargo +1.37 build --all-features)Personally, I think raising MSRV is a better option. 1.37 was released 5.5 years ago, so it's quite old by now, and this fix will cause downstream users to get
synversion 1.x in their dep tree, even though they might be already be using 2.x (and maybe other duplicated crates, or just older versions of non-duplicated crates).