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-core - Type support for the
windows
crate. - windows-implement - The
implement
macro for thewindows
crate, for implementing COM interfaces. - windows-interface - The
interface
macro for thewindows
crate, for declaring COM interfaces. - windows-targets - Import libs for Windows.
- windows-version - Windows version information.
- windows-metadata - Windows metadata reader.
- windows-bindgen - Windows metadata compiler library.
- riddle - Windows metadata compiler tool.