windows-clang (0.100.0+paring.1)
Published 2026-10-14 03:21:29 +09:00 by paring
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add windows-clang@0.100.0+paring.1 --registry forgejoAbout this package
Generates RDL from C/C++ headers using libclang
windows-clang
The windows-clang crate extracts declarations from C and C++ source with libclang and emits RDL. It is the header-facing stage of the Windows metadata pipeline:
headers -> windows-clang -> RDL -> windows-rdl -> WinMD
Add the crate to your Cargo.toml:
[dependencies.windows-clang]
version = "0.100"
For ordinary header-to-RDL generation, configure and run the high-level builder:
windows_clang::clang()
.input("Example.h")
.args(["-x", "c++", "--target=x86_64-pc-windows-msvc"])
.reference_default()
.namespace("Example")
.library("example.dll")
.output("Example.rdl")
.write()
.unwrap();
The builder reads inputs and references, invokes the extractor, emits RDL, and writes the output.
Use Input, extract, and EmitOptions directly when a generator needs to inspect or
combine immutable snapshots before emission.
The caller owns libclang installation, compiler arguments, package versions, import-library discovery, architecture merging, output promotion, and RDL-to-WinMD compilation. See the crate documentation for both APIs and the extraction model.
Dependencies
| ID | Version |
|---|---|
| clang-sys | ^1.8.1 |
| windows-default | ^0.100.0 |
| windows-metadata | ^0.100.0 |
| windows-metadata | ^0.100.0 |
| windows-rdl | ^0.100.0 |
Details
2026-10-14 03:21:29 +09:00
2026-11-10 00:22:51 +09:00
Assets (1)
Versions (1)
View all
Cargo
4
MIT OR Apache-2.0
78 KiB
0.100.0+paring.1
2026-10-14