Skip to content

Latest commit

History

History
30 lines (20 loc) 路 1.1 KB

File metadata and controls

30 lines (20 loc) 路 1.1 KB

cppwinrt

The C++/WinRT compiler, bundled for use from Rust.

cppwinrt packages the C++/WinRT compiler so it can be invoked from a Rust build. It is a thin wrapper that runs the bundled cppwinrt.exe with the arguments you provide, returning its output. This is primarily useful for interop scenarios that also generate C++/WinRT projection headers.


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

How it's built

Packages the prebuilt cppwinrt.exe. src/bindings.rs is generated by tool_bindings from crates/tools/bindings/src/cppwinrt.txt and supplies the CoCreateGuid call used for temporary directory names.

Testing

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