Cargo Features

CXX-Qt-build has no features set by default.

[dependencies]
cxx-qt-build = { version = "0.7.0", features = ["link_qt_object_files"] }

Enables link_qt_object_files of qt-build-utils

qt-build-utils:

When Cargo links an executable, whether a bin crate or test executable,
and Qt 6 is linked statically, this feature must be enabled to link unarchived .o files with static symbols that Qt ships (for example to initialize Qt resources embedded within Qt libraries).

CMake also links those .o files when linking Qt's targets, so this feature must be disabled for staticlib crates. Otherwise, linking will fail with duplicate symbol errors.

When linking Qt dynamically, this makes no difference.

CXX-Qt-build has 1 feature without comment.