I’d like to announce an alpha release of Rust-Qt crates and cpp_to_rust generator.

Repository and documentation

Qt is a highly popular C++ cross-platform framework and one of the very few fully functional classic GUI toolkits. I think bringing power and convenience of Qt to Rust applications would greatly improve its popularity.

Qt is very large, so I’m developing an automatic generator similar to bindgen. This project has grown far more complicated than I expected. It’s very hard to make the bindings convenient, and making them idiomatic in Rust terms seems impossible. I always have a lot of ideas for improvement, but I decided to stop for a moment and ask the community for feedback.

The qt_core , qt_gui , qt_widgets and qt_ui_tools crates are functional now. In addition to documentation, there are some tests and examples to help you get started. There are a lot of issues and missing features, but it’s good enough to make a small program and play with it. You can also try to run the generator yourself if you want. However, the project is far from ready for production, and a lot of things will change in the future.

If you’re interested, I encourage you to take a look at my project and tell me what you think. What are the biggest issues? Do you notice something important missing? How would you design Qt API in Rust? Would you use Rust-Qt in your projects when it’s ready? I’d be happy for any feedback. Contributions to the project are welcome, of course. Also feel free to ask any questions.