Crates.io | cppwinrt |
lib.rs | cppwinrt |
version | 0.1.0 |
source | src |
created_at | 2024-02-02 15:44:33.209705 |
updated_at | 2024-06-10 13:17:46.647323 |
description | C++/WinRT |
homepage | |
repository | https://github.com/microsoft/windows-rs |
max_upload_size | |
id | 1124456 |
size | 1,298,655 |
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: