Expand description
This crate provides information about the Qt installation and can invoke Qt’s moc code generator. This crate does not build any C++ code on its own. It is intended to be used in build.rs scripts together with cc, cxx_build, or cpp_build.
⚠️ THIS CRATE IS UNSTABLE! It is used internally by cxx-qt-build and may be stabilized in the future. For now, prefer use [cxx-qt-build] directly.
Structs§
- CfgGenerator
- Helper for generating cargo cfg for a version range
- MocArguments
- Arguments for a Qt moc invocation. See: QtToolMoc::compile
- MocProducts
- Paths to files generated by QtToolMoc::compile
- QResource
- A
<qresource>block within a QResources - QResource
File - An individial
<file>line within a QResource - QResources
- A helper for building Qt resource collection files
- QmlCache
Arguments - Arguments for a QtToolQmlCacheGen
- QmlCache
Products - Paths to files generated by QtToolQmlCacheGen
- QmlDir
Builder - QML module definition files builder
- QmlFile
- A QML file to be included in a QML module (e.g. by ways of super::QmlDirBuilder).
- QmlLs
IniBuilder - A helper for building QML Language Server configuration files
- QmlModule
Registration Files - Paths to C++ files generated by QtBuild::register_qml_module
- QmlPlugin
CppBuilder - A builder for representing a QML Extension Plugin C++ code
- QmlUri
- A builder for representing a QML uri
- QtBuild
- Helper for build.rs scripts using Qt
- QtInstallationQ
Make - A implementation of QtInstallation using qmake
- QtPlatform
Linker - Linking executables (including tests) with Cargo that link to Qt fails to link with GNU ld.bfd, which is the default on most Linux distributions, so use GNU ld.gold, lld, or mold instead. If you are using a C++ build system such as CMake to do the final link of the executable, you do not need to call this function.
- QtTool
Moc - A wrapper around the moc tool
- QtTool
QmlCache Gen - A wrapper around the qmlcachegen tool
- QtTool
QmlType Registrar - A wrapper around the qmltyperegistrar tool
- QtTool
Rcc - A wrapper around the rcc tool
Enums§
- Plugin
Type - The build type of a Qt plugin
- QtBuild
Error - Errors that can occur while using crate::QtBuild
- QtTool
- An enum representing known Qt tools
Traits§
- QtInstallation
- A Qt Installation that can be used by cxx-qt-build to run Qt related tasks