tarkah / grout

Simple tiling window manager for Windows
MIT License
205 stars 8 forks source link

using microsofts version of winrt-rs to reduce unsafe? #5

Open themasch opened 4 years ago

themasch commented 4 years ago

I noticed a lot of unsafe in rust codes which originates from all the FFI calls to winapi. Do you think it would be worth to see if winrt-rs would be a suitable alternative to winapi in this case? As far as i know its not released to crates.io (yet) but seems to receive official microsoft support and seems to supply a mostly safe API to the windows runtime.

But I have not yet checked if it supports all the things required by grout and if it where an improvement over all. Just wanted to bring this up as it might be helpful.

tarkah commented 4 years ago

So reading the post about the winrt/rust release is what actually prompted me to look into this project. I couldn't find great documentation for using winrt, outside of some c++ examples, and I haven't really wrapped my head around how to use it, or if the hacky window solutions I'm using to make this program work would be supported.

I'll definitely keep an eye on the project though and would totally move to use it once I can confirm it'll be a good fit. Thanks!