iced-counter2
femtovg
Our great sponsors
iced-counter2 | femtovg | |
---|---|---|
1 | 7 | |
0 | 25 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 2 years ago | |
Rust | Rust | |
- | - |
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...
femtovg
-
Bevy vector graphics library?
The problem with femtovg currently is, that it's based on OpenGL. There is a fork for wgpu already, but it's not up to date with master and I'm not sure how difficult merging will be.
- Is there an easy wrapper for wgpu?
-
Iced: A cross-platform GUI library for Rust, inspired by Elm
You guys should also check out the femtovg project, a 2D rendering API that sixty fps relies on.
https://github.com/femtovg/femtovg
It's a decent starting point for trying to build your own toolkit.
I have recently added a wgpu backend but for now it lives in my fork https://github.com/adamnemecek/femtovg
run the demo with `cargo run --example wgpu_demo --release`.
Also join the femtovg discord https://discord.gg/V69VdVu
-
Good GUI toolkit/library recommendations needed
It's not a GUI framework but I'm involved with this project called femtovg, it's a Rust nanovg port. I've recently added a wgpu backend. Run the demo with cargo run --example wgpu_demo --release. Some people have been using it for their own UIs, e.g. tuix. I think that you should consider rolling your own GUI toolkit, it's not that bad and you'll appreciate the control.
-
Electron vs. Qt for a new open-source file organization project
I have been recently rolling my own Rust GUI framework using this rendering crate I’m invovled with https://github.com/femtovg/femtovg and I’m pretty happy with it.
I recently added a wgpu backend https://github.com/adamnemecek/femtovg.
Combine that with the Flutter layout (check out the Druid implementation), and you have a GUI framework.
-
Is Pathfinder (the graphics library) still being developed?
I added a wgpu backend not too long ago, it’s in my fork for now femtovg.
-
SixtyFPS v0.0.6 (GUI Toolkit in Rust): Now with IDE Support
SixtyFPS is a project started by Simon Hausmann and Olivier Goffart who previously worked on Qt at Trolltech.
SixtyFPS is the first project with a company behind it which uses femtovg, a Rust nanovg port. https://github.com/femtovg/femtovg.
Recently, we've added an experimental wgpu backend which is for now in my fork of the project https://github.com/adamnemecek/femtovg
What are some alternatives?
wry - Cross-platform WebView library in Rust for Tauri.
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]
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
pathfinder - A fast, practical GPU rasterizer for fonts and vector graphics
iced - Blazing fast and correct x86/x64 disassembler, assembler, decoder, encoder for Rust, .NET, Java, Python, Lua
webrender - A GPU-based renderer for the web
Druid - Apache Druid: a high performance real-time analytics database.
accesskit - UI accessibility infrastructure across platforms and programming languages
iced - A cross-platform GUI library for Rust, inspired by Elm
rend3 - Easy to use, customizable, efficient 3D renderer library built on wgpu.