serde-this-or-that
sonic-rs
Our great sponsors
serde-this-or-that | sonic-rs | |
---|---|---|
5 | 4 | |
18 | 314 | |
- | 12.7% | |
0.0 | 8.9 | |
about 1 year ago | 6 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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
-
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.
sonic-rs
-
Announcing Sonic-rs 0.2.0: Separate safe & unsafe functions clearly and performance optimization.
Crates: https://crates.io/crates/sonic-rs
-
Announcing sonic-rs: A fast Rust JSON library based on SIMD.
More info in the GH issue.
What are some alternatives?
toolbox-tuner - Graphical application intended for use on Fedora Silverblue to manage containertoolbx.org containers.
august - An Emmet-like language that produces JSON, TOML, or YAML
org.gnome.Todo
hjson-rust for serde - Hjson for Rust
Relm4 - Build truly native applications with ease!
deser-hjson - A Serde 1.0 compatible Rust deserializer for Hjson
done - The ultimate task management solution for seamless organization and efficiency.
faster-pest - A generator for high-performance Pest parsers, bringing your grammar to the next level
redis-derive - This crate implements the FromRedisValue and ToRedisArgs Traits from mitsuhiko / redis-rs for any struct
json - Strongly typed JSON library for Rust
gtk-rs - Rust bindings for GTK 3
Weld - Full fake REST API generator written with Rust