Skip to content

declare version of windows-sys by range set to fix compile under win7#1922

Closed
Fenex wants to merge 1 commit intotokio-rs:masterfrom
Fenex:fix/win7-support
Closed

declare version of windows-sys by range set to fix compile under win7#1922
Fenex wants to merge 1 commit intotokio-rs:masterfrom
Fenex:fix/win7-support

Conversation

@Fenex
Copy link

@Fenex Fenex commented Dec 2, 2025

Declaration with range is a recommended way to add windows-sys crate as dependency:

Using a range instead of the default Caret requirements helps avoid duplicate versions in downstream graphs and improves resolver flexibility.

Additionally, windows-sys@0.61+ has a bug that causes compilation errors under *-win7-windows-* targets, so this change will allow your users to choose & lock in theirs Cargo.lock older version of windows-sys to continue support Windows 7.

Using a range instead of the default Caret requirements helps avoid
duplicate versions in downstream graphs and improves resolver
flexibility.

Additionally, `windows-sys@0.61+` has a bug that causes compilation
errors under `*-win7-windows-*` targets, so this change will allow
users to chose older version of `windows-sys` to avoid this bug.
@Thomasdezeeuw
Copy link
Collaborator

I don't want to deal with errors coming from different window-sys versions. Furthermore Windows 7 is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants