3 ms·
(Rust can absolutely interface with Win32, and Microsoft themselves have implemented bindings to WinRT.)
by steveklabnik 6y ago
(Rust can absolutely interface with Win32, and Microsoft themselves have implemented bindings to WinRT.)
- jeroenhd 6y agoInteresting. In my experience, a lot of Win32 messaging required converting pointers to structs and reading values from that. I don't see how that works with Rust? I suppose you can add a load of unsafe code but that would make the whole thing a lot more complex as you now need to deal with pointer ownership and (de)allocation.
- steveklabnik 6y agoYes, because it is FFI you have to use unsafe to do so. Almost 20 million all time downloads: https://crates.io/crates/winapi https://crates.io/crates/winapi And the other bindings I was talking about https://github.com/microsoft/winrt-rs https://github.com/microsoft/winrt-rs