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

cxx-qt-gen: remove wrapper method for C++ -> Rust invokables #589

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

ahayzen-kdab
Copy link
Collaborator

This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation.

Related to #404

@ahayzen-kdab ahayzen-kdab added the 🥳🎉 1.0 This issue is part of stabilization for 1.0 release label Jun 22, 2023
@ahayzen-kdab ahayzen-kdab force-pushed the 404-remove-invokable-wrapper-method branch 2 times, most recently from 0032e45 to 58e94da Compare June 22, 2023 10:50
@ahayzen-kdab ahayzen-kdab force-pushed the 404-remove-invokable-wrapper-method branch 2 times, most recently from b391c01 to 9a7ba89 Compare July 4, 2023 15:05
@ahayzen-kdab ahayzen-kdab marked this pull request as draft July 17, 2023 09:38
@ahayzen-kdab
Copy link
Collaborator Author

Note if we use this trick, the same can be used for getters / setters etc for properties.

@ahayzen-kdab
Copy link
Collaborator Author

After this change we could potentially pass through the invokable extern function blocks.

@ahayzen-kdab ahayzen-kdab force-pushed the 404-remove-invokable-wrapper-method branch 2 times, most recently from 53294aa to fbdd653 Compare July 19, 2023 13:01
@ahayzen-kdab ahayzen-kdab marked this pull request as ready for review July 19, 2023 13:25
@ahayzen-kdab
Copy link
Collaborator Author

Think we are going to assume this would be a regression in CXX if it did not work.

This then avoids us needing to generate Rust methods with
fully qualified types on the Rust side and removes a load of
generation.

Related to KDAB#404
@Be-ing Be-ing merged commit d14ae73 into KDAB:main Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥳🎉 1.0 This issue is part of stabilization for 1.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants