Skip to content

0.7.2 backports #1259

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

Merged
merged 18 commits into from
Apr 29, 2025
Merged

0.7.2 backports #1259

merged 18 commits into from
Apr 29, 2025

Conversation

ahayzen-kdab and others added 14 commits April 28, 2025 13:23
We effectively ignore if the unsafe is specified and always consider
it to be safe.
As if the individual function is unsafe the block can also be
unsafe without any change in behaviour.
C++Qt block and fn following their original unsafe.
RustQt blocks
- invokables forward the block or fn unsafe to the fn
- signals follow the fn unsafe to the fn
- inherit (and signals) require either block or fn

Anything with pointers in the arguments requires unsafe
on the fn as required by CXX.
Thanks to @whs31 for spotting the issue
As described in KDAB#1237, on Windows we're sometimes hitting the 260 character limit
for filepaths.

This is mostly due to a lot of nesting by Qt Creator, Corrosion and
Cargo who all include the target triple and other configuration information in the
build path.

However, we can at least reduce the character count a little bit on our
part.

For example, for qqmlengine.cxxqt.h, the path length is now reduced by
~40 characters from:

out/cxx-qt-build/target/crates/cxx-qt-lib/include/cxx-qt-lib-internals/src/qml/qqmlengine.cxxqt.h

to now:

out/cxxqtbuild/include/private/src/qml/qqmlengine.cxxqt.h
- `impl cxx_qt::Initialize for x {}` can now be written in the bridge as shorthand
- It is shorthand for `impl cxx_qt::Constructor<()> for x {}`
- Update book, qml_features and docs
* MSVC: Link Qt components to Release runtime

* Windows CI: Build Qt6 in Debug

To ensure we can actually build and run tests in Debug mode, run at
least one Windows CI runner in Debug mode.

* Document MSVC runtime mismatch issues

* qml_multi_crates: Map config for Qt::Network
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (10b5e5a) to head (8c2f4fb).
Report is 18 commits behind head on 0.7.x.

Additional details and impacted files
@@            Coverage Diff            @@
##             0.7.x     #1259   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           71        71           
  Lines        12213     12289   +76     
=========================================
+ Hits         12213     12289   +76     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The test coverage now fails on the error case of generate_rust_signals,
which is likely due to changes in coverage instrumentation.

Adding a corresponding test should fix it
Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :-)

@LeonMatthesKDAB LeonMatthesKDAB merged commit bdf816d into KDAB:0.7.x Apr 29, 2025
16 checks passed
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.

3 participants