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.
Structs§
- Arguments for a Qt moc invocation. See: QtBuild::moc
- Paths to files generated by QtBuild::moc
- Paths to C++ files generated by QtBuild::register_qml_module
- Helper for build.rs scripts using Qt
- An ideal version number that conforms to Semantic Versioning.
Enums§
- Errors that can occur while using QtBuild
Functions§
- 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.