use cxx_qt_build::{CxxQtBuilder, PluginType, QmlModule}; fn main() { CxxQtBuilder::new_qml_module( QmlModule::new("one.krantz.rshell").plugin_type(PluginType::Dynamic), ) .files(["src/my_object.rs"]) .build(); // This is a fix for "Could not resolve 'qt_plugin_instance' function" // It works by using black magic with some rocket science to get things to work println!("cargo::rustc-link-arg-cdylib=-Wl,--version-script=qt-plugin.version"); }