windows-clang
The windows-clang crate scrapes C/C++ headers with
libclang and emits RDL (Rust Definition Language) source - the text format understood by
windows-rdl. It is the header-facing front end of the Win32
metadata pipeline: headers to RDL (this crate) to .winmd (windows-rdl).
Start by adding the following to your Cargo.toml file:
[]
= "0.100"
Point it at one or more headers and write the resulting per-header RDL, then feed that RDL to
windows_rdl::reader() to compile a .winmd:
clang
.input
.output
.namespace
.write_by_header
.unwrap;