6 ms·
It's the same with `rust` and `serde`; it's a great feeling!
by Ar-Curunir 9y ago
It's the same with `rust` and `serde`; it's a great feeling!
- mrkgnao 9y agoI can imagine :) I think over in Rust-land it's something like #[derive(FromJSON)] isn't it?
- steveklabnik 9y ago#[derive(Serialize, Deserialize)] but yeah, same difference.
- mrkgnao 9y agoAh. That derives both "ToJSON" and "FromJSON", as Aeson calls them. Cool!
- steveklabnik 9y agoYeah, and it's actually more general than that: it describes how to serialize and deserialize them generally, so you could use, say, serde_json to get json, or serde_yaml to get yaml.
- mrkgnao 9y agoHuh, nice.