[go: up one dir, main page]

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 test for composable type authoring support #3259

Merged
merged 7 commits into from
Sep 6, 2024
Merged

Conversation

kennykerr
Copy link
Collaborator
@kennykerr kennykerr commented Sep 5, 2024

This tests that windows-bindgen can generate bindings and windows-rs in general can support implementing and consuming closed composable type systems. A closed type system, at least in the simpler MIDL3 dialect, is distinguished by the lack of any constructors on "unsealed" classes and instead depends on static methods for internal construction thus preventing binary (open) composition.

Note that windows-rs has long supported closed composable type systems like Windows.UI.Composition - this is specifically testing its ability to implement such APIs.

A Rust implementation is provided for a "Windows.UI.Composition"-inspired API and consumption is tested both in C++ and Rust.

This uncovered two warts that I'll address soon: #3257 #3258

@kennykerr kennykerr changed the title Add composable type system testing Add test for composable type authoring support Sep 5, 2024
@kennykerr kennykerr merged commit c12340b into master Sep 6, 2024
79 checks passed
@kennykerr kennykerr deleted the composable branch September 6, 2024 13:09
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.

1 participant