4 ms·
serde is bloated anyway. see for yourself: 146 kB: https://crates.io/crates/serde_json https://crates.io/crates/serde_json 43 kB: https://crates.io/crates/sj
by 38 3y ago
serde is bloated anyway. see for yourself:
146 kB: https://crates.io/crates/serde_json https://crates.io/crates/serde_json
43 kB: https://crates.io/crates/sj https://crates.io/crates/sj
29 kB: https://crates.io/crates/humphrey_json https://crates.io/crates/humphrey_json
7 kB: https://crates.io/crates/rust_json https://crates.io/crates/rust_json
- dralley 3y agoI think "bloated" has to be understood in terms of features provided. The serde ecosystem is far more feature rich than any of those options.
- agubelu 3y agoI don't know why a library has to be necessarily small in size. Having micro packages that only do one tiny thing would only lead to a npm-like hellscape, and Serde is the most complete option in the Rust ecosystem. In my opinion it's better to have simple interfaces for complex features, rather than simple interfaces for simple features. You could code those yourself.
- watusername 3y agoAgreed. I'd even go further and say that apart from humphrey_json, the alternatives GP presented provide complex interfaces for simple features. They provide no easy way to convert to/from a strongly-typed struct, which is the reason for serde_derive.
- brigadier132 3y ago"bloated" is just such an absurd and lazy way to describe the performance of software
- 38 3y agoThat's true, I should probably include some measurements too. Oh wait...
- dmit 3y agoYou linked to serde_json and not serde, which this story is about. And the crate sizes listed include not just the source, but also test code and other project files.