4 releases (2 breaking)
0.2.1 | Feb 21, 2025 |
---|---|
0.2.0 | Jan 7, 2025 |
0.1.0 | Jun 10, 2024 |
0.0.0 | Feb 2, 2024 |
#330 in Windows APIs
164 downloads per month
1.5MB
Contains (DOS exe, 1.5MB) cppwinrt.exe
C++/WinRT
The cppwinrt crate bundles the C++/WinRT compiler for use in Rust.
Start by adding the following to your Cargo.toml file:
[dependencies.cppwinrt]
version = "0.1"
Use cppwinrt
function as needed:
fn main() {
match cppwinrt::cppwinrt(["-help"]) {
Ok(output) => println!("{output}"),
Err(error) => println!("{error}"),
};
}
Source:
lib.rs
:
Learn more about Rust for Windows here: https://github.com/microsoft/windows-rs