News for hackers. Stuff that matters.
Re:Official WinRT+Win32 Crate for Rust by ericra on Friday March 05, 2021 @02:24PM (#26360941)
This is very cool, and I'm excited to dig in and try this out for native Windows applications.

The Windows API is daunting, though. I've worked through their examples and reviewed the documentation on Github, but it's a bit overwhelming. If anyone knows of a good resource for learning more (for someone who has not practiced in creating native Windows apps), I would be grateful.

Re:Official WinRT+Win32 Crate for Rust by imstate on Friday March 05, 2021 @02:33PM (#26361054)
Hey,

I the win32 api looks harder than it is. Most of it is reading documentation.

I suggest the book "Programming Windows" by Charles Petzold.

If you know basic C, the win32 api is pretty well documented.

Re:Official WinRT+Win32 Crate for Rust by kitkat_new on Monday March 08, 2021 @01:44PM (#26389772)
Any suggestions how to learn using WinRT for UIs (with Rust)?
Re:Official WinRT+Win32 Crate for Rust by imstate on Wednesday March 10, 2021 @10:59AM (#26412591)
Sorry, I haven't use the WinRT fir rust. I would suggest making a a simple window with a button in C and then try porting all the functions to the rust library.
Re:Official WinRT+Win32 Crate for Rust by implfuture on Friday March 05, 2021 @02:40PM (#26361124)
Does this replace the winapi crate? I’ve been using that crate for things like IAudioClient3, but it seems to have fallen out of regular maintenance https://github.com/retep998/winapi-rs
Re:Official WinRT+Win32 Crate for Rust by contextfree on Friday March 05, 2021 @03:15PM (#26361470)
It's meant to cover the entire Windows API, so that includes everything the winapi create covers. I've successfully ported over my projects that used winapi with few problems.
Re:Official WinRT+Win32 Crate for Rust by imstate on Friday March 05, 2021 @01:52PM (#26360450)
I'm not quite sure why they opted for such a round about way of including bindings instead of using cargos "features" section.

I'm guessing it has to do with using local files to create the bindings.