Stock async types for Windows APIs.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃З Samples
- 馃搧 Source
windows-future provides IAsyncOperation and the related WinRT async interfaces, with
conveniences for producing and consuming them from Rust. Use ready to wrap an already-available
value, spawn to run work on a background thread, and join to block until a result is available.
The types also implement IntoFuture, so they can be .awaited.
The remainder of this page covers how the crate is built and maintained. It is for contributors and
is not needed to use windows-future.
src/bindings.rs is generated by tool_bindings from crates/tools/bindings/src/future.txt and
future_impl.txt; the Future bridge is hand-written.
Run cargo test -p windows-future; see also the workspace test crates.