serde-this-or-that
Custom deserialization for fields that can be specified as multiple types. (by rnag)
Relm4
Build truly native applications with ease! (by Relm4)
Our great sponsors
serde-this-or-that | Relm4 | |
---|---|---|
5 | 23 | |
18 | 1,310 | |
- | 5.7% | |
0.0 | 8.9 | |
about 1 year ago | 6 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
serde-this-or-that
Posts with mentions or reviews of serde-this-or-that.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-18.
-
Introducing serde-this-or-that v0.4.0: Builds on top of serde to deserialize one of various types into a unified type in a struct field.
GitHub | crates.io | Changelog
-
What's everyone working on this week (16/2022)?
I was just working over the weekend on putting together a project, serde-this-or-that which is inspired by a blog post of a similar name, even though technically that blog post appears to discuss something slightly tangential to the matter. This project is inspired by a question posted on SO, which suggested a crate might be useful to deserialize cases where a json field has one of multiple possible multiple types (for example it could come as str or bool). I was also working on adding benchmarks, which this is actually the first crate where I have successfully put together benchmarks using criterion which I've been kind of nervous about using in general, but based on the docs it was pretty easy to set up so I'm kind of glad about that at least.
-
serde-this-or-that v0.2: now with added functionality and updated docs!
Update: for those curious, I've added benchmarks for comparison with serde_with here. After some more testing, I've release v0.4 and am confident that performance is now on par with serde_with. Also, I noticed that whenever serde_with::PickFirst is used, performance drops; in this case, serde_this_or_that does seem to perform 12x better in such scenarios.
-
Announcing serde-this-or-that v0.2: now with added functionality and updated docs!
The full release notes can be found on the project page on GitHub as well.
-
Introducing serde-this-or-that v0.1: custom deserialization for fields in multiple types
I've just published an initial release of serde-this-or-that, which builts on top of serde to provide custom deserialization for fields that can be specified as multiple types.
Relm4
Posts with mentions or reviews of Relm4.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-27.
-
Writing Gnome Apps with Swift
There is Relm (https://relm4.org/). Which is in Rust is just GTK (through it's Rust bindings) with a nice reactivity layer on top.
-
Resources for learning to write ui files for GTK4
I’d recommend you checking out https://relm4.org if you know a little Rust. Relm4 is currently the easiest and most intuitive way to write GTK
-
[media] Czkawka 6.0 - File cleaner, now finds similar audio files by content, files by size and name and fix and speedup similar images search
Relm4 might make your migration easier. It has factories which make it easy to create lists (both sync and async) and recently added TypedListView as another useful abstraction over pure gtk-rs. There is a lot of potential in Rust + GTK, you just have to find idiomatic abstractions.
-
What are the scenarios where "Rewrite it in Rust" didn't meet your expectations or couldn't be successfully implemented?
Did you try Relm? It's an implementation is the elm architecture (think react) on top of Gtk. Given your experience with Gtk it might suit you really well, as you can even take only parts of it and continue using bare Gtk for the rest. Give it a try!
- Native App Development
-
GUI development with Rust and GTK 4
What about relm4? Is it generally feature complete? Can one use relm4 for most things, and drop to gtk4 for the oddball task that is not supported?
https://relm4.org/
-
Newbie needs help with Relm4 errors. On Kubuntu
Using this example: https://github.com/Relm4/Relm4/blob/main/examples/simple.rs
-
Forte! A new way of writing Gtk apps for GNOME.
What advantage would this Rust crate have over Relm4? It seems pretty similar to me, save for the property based syntax that Forte has, instead of the set_* ones used on Relm4.
-
Need guidance for developping GTK4 + Libwaita apps
If you like Rust I recommend Relm4, one of the best experiences I’ve had with a framework tbh, be sure to learn gtk-rs first.
- Rust: State of GUI, December 2022 – KAS blog