Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don’t write very much unsafe Rust code… but when I do, it’s because I’m calling the Win32 API.

Check out windows-rs instead.

https://github.com/microsoft/windows-rs



I did look at that first.

In my case I am looking for NetUserAdd and associated functionality, which doesn’t exist in any wrapper crate I could find- since that would have been significantly easier than what I ended up needing to do.

But, how do they test their unsafe bits?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: