winrt-rust icon indicating copy to clipboard operation
winrt-rust copied to clipboard

Add RtActivatable::can_be_registered method

Open GuillaumeGomez opened this issue 5 years ago • 2 comments

I get a panic at runtime(!) in https://github.com/GuillaumeGomez/sysinfo/pull/287 because we can't check beforehand if we can use an interface or not. I think this is not great and added this method to allow me to check so I can avoid the panic.

This is just an example, if you have a better solution, I'll all for it!

GuillaumeGomez avatar Apr 06 '20 09:04 GuillaumeGomez

I'm sorry that I didn't answer earlier, but the reason is that I'm currently not actively developing this project because https://kennykerr.ca/2020/02/22/rust-winrt-coming-soon/ is a thing.

In principle, this PR looks good and I could as well just merge it, but I don't know if that would help anyone if I don't also eventually make a new release, which I'm currently not planning to do.

Boddlnagg avatar Apr 18 '20 07:04 Boddlnagg

No problem, if the issue is solved in the long run, I'm fine with it. But being able to check if you can use something beforehand to prevent unwanted panics is a must have for me.

GuillaumeGomez avatar Apr 18 '20 10:04 GuillaumeGomez