Skip to content

Latest commit

History

History
30 lines (20 loc) 路 1.13 KB

File metadata and controls

30 lines (20 loc) 路 1.13 KB

windows-future

Stock async types for Windows APIs.

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.


Internal documentation

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.

How it's built

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.

Testing

Run cargo test -p windows-future; see also the workspace test crates.