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

Use and (eventually) make Windows Runtime APIs with Rust

Results 33 winrt-rust issues
Sort by recently updated
recently updated
newest added

Is it possible to create a uwp app with a ui with this library? If so can an example for that use case be added? If not what's preventing this:...

First step towards const fn evaluation. Changes: - Change `ComIid` trait to return by value (should be changed to an associated const before merging this) - Add fullname strings to...

I haven't fully understood the Windows Runtime threading model yet. We should probably mark generated class as `Send` and/or `Sync` based on the `ThreadingModel` and `MarshallingBehavior` attributes. If I understand...

help wanted

This should be possible with Rust's coroutines support, see https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html and https://github.com/rust-lang/rust/issues/43122. We might need to provide our own macros similar to https://github.com/alexcrichton/futures-await.

`AsyncOperationCompletedHandler::new::` includes `Send` in its bounds for `_F_`, and I’m not sure why it does, or whether it should in fact. For “I’m not sure why”: `AsyncOperationCompletedHandler` is explicitly marked...

Some enums have the `[Flags]` attribute, e.g. `Windows.Storage.StorageOpenOptions` (even though I don't understand its purpose in that case ...). We should implement the bitwise operators for them (or maybe use...

help wanted

See https://devblogs.microsoft.com/oldnewthing/20190412-00/?p=102413 for an example for what it can be used for. Ideally it would be included in winapi-rs and reexported from winrt-rust, but it looks like currently it's not...

Thoughts on implementing the primary Rust error trait for winrt's error type?

Looks like Microsoft just released a new repo that contains Vanilla C++ projections for WinRT: https://github.com/Microsoft/cppwinrt ([and the associated blog post](https://blogs.windows.com/buildingapps/2016/11/28/standard-c-windows-runtime-cwinrt/)) Would using this be easier than generating the necessary...

I had an idea that might alleviate the pain of this crate's compile times (#26): Once we have a code generator in Rust (#50) – which would probably be quite...