-
Notifications
You must be signed in to change notification settings - Fork 534
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
Move to Rust edition 2021 and version 1.56 #2568
Conversation
Looks like this is failing due to a change in 2021: https://doc.rust-lang.org/stable/edition-guide/rust-2021/reserving-syntax.html |
|
@TheBlueMatt I don't think that's true, Mio only depends on v0.48, see https://github.com/tokio-rs/mio/blob/8dd37c5e14bf7031365321c5aad5dc85788b9a09/Cargo.toml#L52, Cargo isn't allowed to use v0.49 or v0.50 because of that. |
Not sure what you mean by 0.49 or 0.50 (I don't see a windows-sys or windows-targets version for either of those, but windows-sys 0.48 depends on windows-targets 0.48... which got switched to windows-targets 0.48.3, which is what ultimately broke here. |
See specifically the dependency tree posted at tokio-rs/tokio#5934 (comment) which shows mio depending on 0.48 and |
The following script run in an empty directory illustrates the change in M"S"RV in the
|
Hopefully #2613 will help. |
Thanks! That would certainly address the issue I'm hitting. However, more generally, I took your comment at tokio-rs/tokio#5934 (comment) to imply that there is no MSRV (ie version supported, not just the field in the Cargo.toml) which would imply that this issue could happen in the future and its not explicitly supported? Is that true or did I miunderstand your comment (is the MSRV here fixed for a given minor version?). Of course there's no pressure on any project to support anything they don't want to, I just want to know what is supported for our own reference and build systems. |
That comment was purely about the fact that Rust 1.48 doesn't support the |
Ah, I definitely very much misunderstood that comment. Could you comment on the MSRV (policy, not keys) of the |
The 0.48 crates have an MSRV of 1.48 while the newer crates have an MSRV of 1.56. So this was not intentional. it's just that testing 1.48 is virtually impossible. |
Ah! Okay, thanks. Much appreciated. |
Now that the major crate dependencies like
syn
andtokio
have moved to 1.56 or later,windows-rs
can finally make the move to the 2021 edition of Rust and MSRV forwindows
andwindows-sys
will be 1.56 from here on.