C++ Rust and Qt Easier than you think
summary
Shows concrete glue paths: using CXX or cbindgen to expose Rust types to C++, or KDAB’s CXX-Qt to write QML-first apps entirely in Rust; Corrosion automates invoking Cargo from CMake so Rust crates build inside a Qt project; real examples include a full Rust QML contrast app and Servo integrated via FFI. Remaining practical hurdles are packaging, Cargo vs CMake workflows, and static vs dynamic linking for distributions.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 3:39Understanding Rust
- 6:18Rust in the KDE ecosystem
- 11:12Practical applications of Rust
- 16:48Technical safety and integration
- 23:00Integration tools: Corrosion and CXX
- 26:43CXX-Qt framework
- 27:57Building Rust applications with Qt
- 34:58Open questions and conclusion
- 37:42Q&A session
related talks
25mRust binding for Qt : How to mix QML with Rust
41mC++ Migration Strategies
53mC++/Rust Interop: A Practical Guide to Bridging the Gap Between C++ and Rust
25mRust and C++
08mLightning Talk: C++ and Rust Bindings - Mixing It Best With CMake
33mOxidizing KDE: How, why, and why not?
42mPanel: Rust and C++ can work together!
59mRust for C++ developers - What you need to know to get rolling with crates
