Hacker News new | past | comments | ask | show | jobs | submit login

rustc_serialize was built for the compiler itself, and not really well-designed to be an external library. But it was Good Enough for a long time. Serde is the next-gen, built from the ground up to be awesome thing.



Should there be some kind of indication of that in the crate repo or doc of rustc_serialize?


Well, it depends. Serde is still in active development, not at 1.0 yet. I don't think it's totally clear that at _this moment_, it's always better. It will be in the future, I'm just not sure that future is today.

Plus, there are other serialization libraries as well, and having the official Rust docs play favorites in the ecosystem is something we try to avoid.


Also, until Stable rust gets custom_derive, the barrier to entry for Serde is too high.


The tragedy being that rustc_serialize only gets away with this because its machinery is directly built into the compiler.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: