Hacker News new | ask | show | jobs
by ungzd 3477 days ago
There's also nom (https://github.com/Geal/nom) which is similar to Parsec and more designed for parsing text formats but used for binary formats too.
2 comments

Serde is short for "serialize/deserialize", nom is about parsing. Similar, but slightly different things.
Serde creator here. Steve's right, serde is fundamentally a generic protocol that implements serialization. I didn't use nom for serde_json (because it didn't exist at the time) but it's definitely possible to use nom and other parser generators to implement the serde protocol.
It's coming to 24 days of Rust as well :-)