The windows-sys crate is not restricted anymore

51 views
Skip to first unread message

Mike Hommey

unread,
Jul 20, 2023, 12:04:00 AM7/20/23
to dev-pl...@lists.mozilla.org
Hi,

As of bug 1844001, it is now possible to import the windows-sys rust
crate (only if it's version 0.48.x). It however hasn't been imported
in tree, so that's still something that will be up to whoever needs to
import it first.

Note: the windows crate is still restricted, and will probably stay
restricted. Upstream is moving towards adhoc bindings generation,
although all the details don't seem to be ironed out yet.

Cheers,

Mike

Nicholas Rishel

unread,
Jul 24, 2023, 10:58:34 PM7/24/23
to dev-pl...@mozilla.org, Mike Hommey
For anyone interested in this area, the key difference between the `windows-sys` and `windows` crates are that the former supports the C-Style Windows API, the latter supporting COM and WinRT.

As a rule of thumb (if I understand correctly) code that relies on WRL will need to wait until `windows` is ungated unless you really want to hand roll relevant COM vtables.

Nick
Reply all
Reply to author
Forward
0 new messages