Expand description
This crate provides a builder which parses given Rust source code to search for CXX-Qt or CXX macros and generate any resulting C++ code. It also builds the C++ code into a binary with any cxx-qt-lib code and Qt linked.
Modules§
- dir
- This modules contains information about the paths where artifacts are placed by cxx-qt-build.
Structs§
- CxxQt
Builder - Run cxx-qt’s C++ code generator on Rust modules marked with the
cxx_qt::bridge
macro, compile the code, and link to Qt. This is the complement of thecxx_qt::bridge
macro, which the Rust compiler uses to generate the corresponding Rust code. No dependencies besides Qt, a C++17 compiler, and Rust toolchain are required. - CxxQt
Builders Opts - Options for external crates to use
- Interface
- When generating a library with cxx-qt-build, the library may need to export certain flags or headers. These are all specified by this Interface struct, which should be passed to the crate::CxxQtBuilder::library function.
- MocArguments
- Arguments for a Qt moc invocation. See: QtBuild::moc
- QObject
Header Opts - Options for qobject_headers
- QmlModule
- Metadata for registering a QML module with crate::CxxQtBuilder::qml_module