Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(quinn-udp): support both windows-sys v0.52 and v0.59
`quinn-udp` depends on the `windows-sys` crate, more specifically `windows_sys::Win32::Networking::WinSock`: https://github.com/quinn-rs/quinn/blob/a5d9bd1154b7644ff22b75191a89db9687546fdb/quinn-udp/src/cmsg/windows.rs#L6 https://github.com/quinn-rs/quinn/blob/a5d9bd1154b7644ff22b75191a89db9687546fdb/quinn-udp/src/windows.rs#L13 Previously `quinn-udp` was using `windows-sys` `v0.52`. #1960 updated `quinn-udp` to `v0.59`. Note that `windows-sys` went straight from `v0.52` to `v0.59`. There are no versions in between. `quinn-udp` does not depend on any `windows-sys` `v0.59` features. In other words, it can support both `windows-sys` `v0.52` and `v0.59`. https://github.com/microsoft/windows-rs/releases/tag/0.59.0 This commit allows downstream users of `quinn-udp` to explicitly use `quinn-udp` with `windows-sys` `v0.52`. For other users not explicitly demanding `windows-sys` `v0.52`, cargo will choose `windows-sys` `v0.59`: > It also attempts to use the greatest version currently available within that compatibility range. https://doc.rust-lang.org/cargo/reference/resolver.html#semver-compatibility
- Loading branch information