Hacker News new | past | comments | ask | show | jobs | submit login

> 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?




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

Search: