-
Notifications
You must be signed in to change notification settings - Fork 499
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
Bug: Linker Error When Using windows
and mio
(uses windows-sys
)
#2410
Comments
windows
and mio
(uses windows-sys
)windows
and mio
(uses windows-sys
)
On it - will get a fix out asap. |
I can release a compatible version of https://crates.io/crates/windows-targets/versions Then everyone is again compatible and we won't need another release of How does that sound? |
Sounds good! Not needing release for |
Just a quick update. I spent the last few hours digging into this issue, testing and debugging a few different scenarios including your repro - thanks! - and there are broadly two different issues here:
The Win32 metadata issue has now been resolved and we should have a fix trickling into The solution to the larger issue I landed on is to embed the version number of the The downside in the short term is that this does require some major surgery to the How does that sound? |
This is really important. I think it will be common for users to have at least a dependency on
Sounds good! Especially since a release for |
Which crate is this about?
windows
Crate version
0.47
Summary
I'm trying to update
windows
to version 0.47. In my code, I usedK32EnumProcesses
(in 0.46 fromkernel32.dll
). This was removed in 0.47 andEnumProcesses
was added. This function comes frompsapi.dll
. Using this on its own works fine. However, in the project I'm also usingtokio
which pulls inmio
. Specifyingmio
in theCargo.toml
and compiling, results in a linker-error.Toolchain version/configuration
Note: I also tried to compile with stable (
cargo +stable b
).Reproducible example
Crate manifest
Expected behavior
The binary should compile without any errors.
Actual behavior
Compiling results in a linker-error:
Additional comments
I couldn't lower the problem down to a specific function from
windows-sys
that's used bymio
.The text was updated successfully, but these errors were encountered: