kenz-gelsoft / wxRust

A Rust binding of the wxWidgets cross platform toolkit.
Other
133 stars 19 forks source link

Is this repo in active development? #46

Open LinuxDevon opened 3 years ago

LinuxDevon commented 3 years ago

Hello,

Looking over the commit graph there appears to be no history since 2017. I was wondering if we could hand this off to someone to start maintaining or if we should create another repo to start from?

I don't want to loose all the work on this repo. It is also a little frustrating that WxWidgets wiki links to this repo as a binding and there is no support. GUI options are still a little limited in Rust but making progress.

I am coming from WxWidgets in C++ and thought this would be a good option to start with seeing as I am familiar with the lib.

kenz-gelsoft commented 3 years ago

Sorry for very very long silence,

In short, NO.

As you (and others) noticed, this repo has not been maintained for a long time, because I don't have enough spare time to work on.

This project started when Rust was not stable, and was at most PoC state when it was most active.

If someone who experienced in Rust or wxWidgets (re)start work on wx binding in Rust, I think there's better approach to bind wx in Rust now, for example, using rust-bindgen's C++ binding direcly, cxx, or Google's autocxx.

wxRust depends on wxc (in wxHaskell) calling wxWidgets, which isn't actively updated, can't support new wx APIs. and linking through wxc results in large binary (with handy static linking configuration).

Modern binding solutions like CXX may give us better wx object's lifetime managment, more safety, resolving above problems.

LinuxDevon commented 3 years ago

Alright thank you for the response!

As for the state of this, I agree maybe a rust bind generator is the better answer. I did attempt rust-bindgen but was unsuccessful due to a bug with templates at the moment. There was also another repo I stumbled upon that tried it as well https://github.com/LoganDark/wxRust.

I hadn't heard of CXX and only briefly hear of Autocxx. I will give those both an attempt in the near future. Thank you for these suggestions.

I will try and report back if I find out anything or am successful.