Using Rust in Qt project.
-
wrote on 8 Jan 2024, 10:16 last edited by
Hello all!
If anyone interested in using Rust with Qt application here the example of how to use it without rust-qt-binding-generator
This example based on using Rust static library that built with C-interface. It's pretty much strait forward approach, just build Rust Static Library and attach it to Qt project. All of this examples based on:
All of it is working perfectly with iOS/MacOS and Android of all archs. For Windows and Linux - don't know, but my suggestions it will be Ok too. Just install additional targets for Rust compiler and perform cross compilations for each of requested platforms.
If you interested in using Rust with native iOS application then follow this examples published by me:
-
Hello all!
If anyone interested in using Rust with Qt application here the example of how to use it without rust-qt-binding-generator
This example based on using Rust static library that built with C-interface. It's pretty much strait forward approach, just build Rust Static Library and attach it to Qt project. All of this examples based on:
All of it is working perfectly with iOS/MacOS and Android of all archs. For Windows and Linux - don't know, but my suggestions it will be Ok too. Just install additional targets for Rust compiler and perform cross compilations for each of requested platforms.
If you interested in using Rust with native iOS application then follow this examples published by me:
wrote on 8 Jan 2024, 10:17 last edited byThe Qt 6 examples with CMake in progress now. When it will be finished will publish it on Github. For now just have no free time for it.
-
1/2