Skip to content

Latest commit

History

History
33 lines (22 loc) 路 1.21 KB

File metadata and controls

33 lines (22 loc) 路 1.21 KB

windows-sys

Zero-overhead raw bindings (externs, structs, constants) for Windows APIs.

windows-sys contains raw Windows API declarations, structs, and constants without wrapper traits. APIs are gated by Cargo features, such as combaseapi.

Use windows-sys when raw pointers and unsafe calls are appropriate. Use windows for COM and WinRT wrappers, or windows-bindgen to generate a smaller binding set.


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-sys.

How it's built

Generated by tool_package (driving windows-bindgen in --package mode) from crates/tools/package/src/sys.txt. As with windows, src/lib.rs is hand-maintained and the docs.rs page is an intentional stub.

Testing

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