Missing hint, function symbol import of the windows crate inside Helix

โš“ Rust    ๐Ÿ“… 2025-07-30    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 11      

surdeus

Warning

This post was published 126 days ago. The information described in this article may have changed.

Hello 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

Read full topic

๐Ÿท๏ธ Rust_feed