Cargo Features
[dependencies]
cxx-qt-lib = { version = "0.6.1", default-features = false, features = ["bytes", "chrono", "http", "rgb", "qt_gui", "qt_qml", "time", "url", "link_qt_object_files"] }
- default = qt_gui, qt_qml
-
These default features are set whenever
cxx-qt-lib
is added without
somewhere in the dependency tree.default-features = false - bytes
-
Enables bytes
- chrono
-
Enables chrono
- http
-
Enables http
- rgb
-
Enables rgb
- qt_gui build default
-
Enables qt_gui of cxx-qt-lib-headers
- qt_qml build default
-
Enables qt_qml of cxx-qt-lib-headers
- time
-
Enables time
- url
-
Enables url
- link_qt_object_files build
-
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-lib has 10 features without comments.