The C++/WinRT compiler, bundled for use from Rust.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃搧 Source
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.
The remainder of this page covers how the crate is built and maintained. It is for contributors and
is not needed to use cppwinrt.
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.
Run cargo test -p cppwinrt; see also the workspace test crates.