For anyone interested in this area, the key difference 
<https://kennykerr.ca/rust-getting-started/windows-or-windows-sys.html> 
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 
<https://searchfox.org/mozilla-central/source/toolkit/components/bitsdownload/bits_client/bits/src/callback.rs>
.

Nick

On Wednesday, July 19, 2023 at 9:04:00 PM UTC-7 Mike Hommey wrote:

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 

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/27765f8d-1b0d-46ab-a1a7-4516c86fc194n%40mozilla.org.

Reply via email to