Skip to content

Update windows-sys to ">= 0.52, <= 0.61", fix warnings on recent Rust.#38

Open
ColinFinck wants to merge 1 commit into
darfink:masterfrom
ColinFinck:windows-sys-0.61
Open

Update windows-sys to ">= 0.52, <= 0.61", fix warnings on recent Rust.#38
ColinFinck wants to merge 1 commit into
darfink:masterfrom
ColinFinck:windows-sys-0.61

Conversation

@ColinFinck

@ColinFinck ColinFinck commented Jan 21, 2026

Copy link
Copy Markdown

windows-sys 0.61.x is very important for me, because it consistently uses raw-dylib for importing APIs from Windows DLLs. This makes a huge difference when using non-MSVC toolchains to build Windows binaries, e.g. x86_64-pc-windows-gnullvm.

This syntax is recommended by Microsoft in https://crates.io/crates/windows-sys/0.61.2.
It helps to eradicate duplicate windows-sys dependencies from the dependency tree of a complex project.

Recent Rust also warns about the previous static mut. However, that one is no longer necessary, because we have OnceLock now. I adapted the code accordingly.

cargo test didn't want to run without #[allow(invalid_reference_casting)].

CC @darfink

@ColinFinck

Copy link
Copy Markdown
Author

Bump

CC @darfink

@ColinFinck

Copy link
Copy Markdown
Author

Ping @darfink

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.

1 participant