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

Download history 1/week @ 2024-12-11 50/week @ 2025-01-01 81/week @ 2025-01-08 12/week @ 2025-02-05 136/week @ 2025-02-19 16/week @ 2025-02-26

164 downloads per month

MIT/Apache

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

No runtime deps