Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cppwinrt crate and sample #3054

Merged
merged 10 commits into from
May 26, 2024
Merged

Add cppwinrt crate and sample #3054

merged 10 commits into from
May 26, 2024

Conversation

kennykerr
Copy link
Collaborator

Building on #3046, this update introduces the new cppwinrt crate that bundles the C++/WinRT compiler for use in Rust. It just makes it super easy to generate C++/WinRT headers directly from Rust:

[dependencies.cppwinrt]
version = "0.1"
fn main() {
    match cppwinrt::cppwinrt(["-help"]) {
        Ok(output) => println!("{output}"),
        Err(error) => println!("{error}"),
    };
}

riverar
riverar previously approved these changes May 25, 2024
@riverar riverar merged commit 0bd3bff into master May 26, 2024
90 checks passed
@riverar riverar deleted the cppwinrt branch May 26, 2024 02:46
mati865 pushed a commit to mati865/windows-rs that referenced this pull request Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants