The windows and windows-sys crates let you call any Windows API past, present, and future using code generated on the fly directly from the metadata describing the API and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by C++/WinRT of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs.
This repo is the home of the following crates (and other supporting crates):
-
windows-sys - Raw bindings for C-style Windows APIs.
-
windows - Safer bindings including C-style APIs as well as COM and WinRT APIs.
-
windows-bindgen - Code generator for Windows metadata.
-
windows-core - Core type support for the Windows bindings.
-
windows-registry - Windows registry.
-
windows-result - Windows error handling.
-
windows-strings - Windows string types.
-
windows-link - Direct linking for Windows.
-
windows-targets - Import libs for Windows (and the precursor to
windows-link
for older compilers). -
windows-version - Windows version information.
-
cppwinrt - Bundles the C++/WinRT compiler for use in Rust.