iced-counter2
re-wx
Our great sponsors
iced-counter2 | re-wx | |
---|---|---|
1 | 4 | |
0 | 127 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 1 year ago | |
Rust | Python | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iced-counter2
-
Iced: A cross-platform GUI library for Rust, inspired by Elm
The iced package requires the messages to implement the Debug, Clone, and Send traits, none of which are available for closures. I was able to implement something similar to your example[0] but it only supports plain function pointers for the callbacks. The compiler wasn't able to derive a sufficiently general Debug trait for the function pointer due to an issue with the lifetime of the argument, so I had to implement that myself as well.
Incidentally, as long as there are situations where only function pointers can be used and not closures it would be really nice to have some support for anonymous function pointers in Rust (with the fn type and not just the Fn trait) so that one could write e.g. "Message(fn |c| c.value += 1)" instead of "Message({ fn f(c: &mut Counter) { c.value += 1 } f })". Or just infer the fn type for "closures" which don't actually close over any variables without the need for an extra keyword.
[0] https://github.com/nybble41/iced-counter2/blob/master/src/ma...
re-wx
-
Iced: A cross-platform GUI library for Rust, inspired by Elm
For Python + WX, there's also re-wx[0] (shameless self-promotion)!
I wanted React with Elm-like architectures in WX enough that I got annoyed and built one ^_^
[0] https://github.com/chriskiehl/re-wx
- Chriskiehl/re-wx: A library for building modern declarative applications in WX
- RE-WX: A Python library for building modern native desktop applications with WXPython
- Show HN: Re-wx A Python library for building declarative desktop applications
What are some alternatives?
wry - Cross-platform WebView library in Rust for Tauri.
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
webrender - A GPU-based renderer for the web
iced - Blazing fast and correct x86/x64 disassembler, assembler, decoder, encoder for Rust, .NET, Java, Python, Lua
Slint - Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++ or JavaScript. [Moved to: https://github.com/slint-ui/slint]
Druid - Apache Druid: a high performance real-time analytics database.
iced - A cross-platform GUI library for Rust, inspired by Elm
Nu - Repository hosting the open-source Nu Game Engine and related projects.