2 ms·
Rust's serde library is great for processing JSON. It automatically serializes/deserializes objects to json, and you can write arbitrary validation methods. I
by hedora 5y ago
Rust's serde library is great for processing JSON. It automatically serializes/deserializes objects to json, and you can write arbitrary validation methods. It's also extremely fast.
Since rust has a rich type system and generics, it is able to automatically generate all sorts of useful things at compile time. JSON boilerplate is only one example.
Also, the html! macro in the article allows for some nice syntactic sugar, presumably without giving up compile time type checking.
The SPA part feels like overkill, but they're demoing an SPA framework. There are many other rust web service frameworks.