You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust analyzer seems to fail to parse with windows crate from version 58 onwards. Version 57 is parsed fine. This only seems to be a bug when writing on linux to cross compile for windows. The program will still compile, but will error on the cargo check with
error[E0432]: unresolved import `windows::Win32`
--> src/main.rs:1:5
|
1 | use windows::Win32;
| ^^^^^^^^^^^^^^ no `Win32` in the root
For more information about this error, try `rustc --explain E0432`.
rust-analyzer 1.84.0 (9fc6b43 2025-01-07)
rustc 1.84.0 (9fc6b4312 2025-01-07)
code snippet to reproduce:
use windows::Win32;fnmain(){println!("Hello, world!");}
[dependencies]
windows = { version = "0.59.0", features = ["Win32"] }
The text was updated successfully, but these errors were encountered:
numonce
changed the title
Rust analzer fails to parse windows crate for versions 0.58+
Rust analyzer fails to parse windows crate for versions 0.58+
Jan 17, 2025
Rust analyzer seems to fail to parse with windows crate from version 58 onwards. Version 57 is parsed fine. This only seems to be a bug when writing on linux to cross compile for windows. The program will still compile, but will error on the
cargo check
withrust-analyzer 1.84.0 (9fc6b43 2025-01-07)
rustc 1.84.0 (9fc6b4312 2025-01-07)
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: