News for hackers. Stuff that matters.
Re:CXX-Qt: Safe Rust bindings for Qt by zozbot234 on Wednesday March 02, 2022 @09:36AM (#30527759)
An idiomatic binding to wxWidgets would be a great alternative to Electron-like solutions for multi-platform GUI. AIUI, there's already a wxC project (i.e. a pure C foreign interface for wx, needed to support other bindings) and a Rust binding could be built on that.
Re:CXX-Qt: Safe Rust bindings for Qt by nu11ptr on Wednesday March 02, 2022 @10:00AM (#30528078)
Is wxC maintained? I didn't think it was. I always thought a more interesting approach would be like the one wxPython uses. They effectively walk the object tree generated by Doxygen docs and do code generation from it. Not sure how viable it would be to do this with Cxx directly or if it would be better to generate a C based API from it AND a Rust wrapper. The latter has the advantage that multiple languages could write bindings against this C based API (like wxC), but since generated, less maintenance.
Re:CXX-Qt: Safe Rust bindings for Qt by smasher164 on Wednesday March 02, 2022 @09:54AM (#30527993)
I don't think wxC is supported anymore. Its SourceForge (lol) page lists 2013-04-15 as the last time it was updated. I believe with all the nice tooling that's popped up in the C++ space over the last decade (e.g. libclang, cxx) could allow bindings to be created more easily/sustainably. Someone has to do it though :)