Missing hint, function symbol import of the windows crate inside Helix
โ Rust ๐ 2025-07-30 ๐ค surdeus ๐๏ธ 11Hello everyone,
I am using the helix ide with rust-analyzer. Lately, I have tried to get the hangs of the โwindowsโ crate.
Adding the 0.52 version of the crate using cargo works fine. Auto-completion prompts & function symbols are visible inside the editor.
But for some reasons, using the latest version of windows crate suddenly breaks any symbol import and helix is not able to provide any suggestions related to the crate while โnormalโ rust suggestions still appear.
After hours of troubleshooting, I canโt get it working. It is quite troublesome since the latest versions of the crate provides C typedefs ported to Rust which makes programming easier especially when using the WIN32 API. I am currently using raw Rust types to interface C code, which in the long run is not optimal.
Here is the working Cargo.toml I currently use :
[package]
name = "rustdll"
version = "0.1.0"
edition = "2024"[dependencies]
windows ={ version = "0.52", features = ["Win32_Foundation", "Win32_NetworkManagement", "Win32_System_SystemServices", "Win32_UI_WindowsAndMessaging"] }[lib]
crate-type = ["cdylib"]
Any help or good practices to set-up a Rust project that will be cross-compiled to the windows platform is welcome.
Thank you for your guidance.
1 post - 1 participant
๐ท๏ธ Rust_feed