Crate cxx_qt_build

Source
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§

CxxQtBuilder
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 the cxx_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.
CxxQtBuildersOpts
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
QObjectHeaderOpts
Options for qobject_headers
QmlModule
Metadata for registering a QML module with crate::CxxQtBuilder::qml_module