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-lib: use unique ptr types and don't wrap #166

Merged
merged 3 commits into from
Aug 2, 2022

Conversation

ahayzen-kdab
Copy link
Collaborator

This will greatly simplify the generation later as we'll be
able to remove the pattern matching. Also it requires the
developer to perform what can be costly conversions, so
this then is more Rust-like as it points to where close might be.

@ahayzen-kdab ahayzen-kdab force-pushed the 154-use-unique-ptr-types branch 2 times, most recently from 151159c to 33e1502 Compare July 21, 2022 15:16
@ahayzen-kdab ahayzen-kdab marked this pull request as ready for review July 21, 2022 15:16
@Be-ing
Copy link
Contributor

Be-ing commented Jul 21, 2022

The Rust is failing to link on Windows.

README.md Show resolved Hide resolved
@ahayzen-kdab
Copy link
Collaborator Author

The Rust is failing to link on Windows.

Yup, we are unsure why or what's changed specifically to break that so far...

book/src/concepts/types.md Outdated Show resolved Hide resolved
@ahayzen-kdab ahayzen-kdab force-pushed the 154-use-unique-ptr-types branch from 33e1502 to b7eadc0 Compare July 21, 2022 17:32
@Be-ing
Copy link
Contributor

Be-ing commented Jul 21, 2022

Please leave a comment when you get the Windows build working again.

@ahayzen-kdab ahayzen-kdab marked this pull request as draft July 21, 2022 22:25
CMakeLists.txt Outdated Show resolved Hide resolved
@ahayzen-kdab ahayzen-kdab force-pushed the 154-use-unique-ptr-types branch 4 times, most recently from d9c9073 to 2144858 Compare July 22, 2022 16:36
@ahayzen-kdab ahayzen-kdab force-pushed the 154-use-unique-ptr-types branch 4 times, most recently from f355bc6 to 5c063f1 Compare August 2, 2022 14:57
@ahayzen-kdab ahayzen-kdab marked this pull request as ready for review August 2, 2022 14:57
book/src/concepts/types.md Outdated Show resolved Hide resolved
book/src/concepts/types.md Outdated Show resolved Hide resolved
cxx-qt-gen/src/gen_rs.rs Outdated Show resolved Hide resolved
This will greatly simplify the generation later as we'll be
able to remove the pattern matching. Also it requires the
developer to perform what can be costly conversions, so
this then is more Rust-like as it points to where close might be.
For now remove Rust's strings as supported types as these need to
go through the UTF conversion. Instead require the developer to
invoke the conversion themselves. Once pattern matching is removed
we can support CxxString etc.
@ahayzen-kdab ahayzen-kdab force-pushed the 154-use-unique-ptr-types branch from 5c063f1 to 75a33f3 Compare August 2, 2022 16:16
@Be-ing Be-ing merged commit 617f420 into KDAB:main Aug 2, 2022
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