Live data from Hacker News

Serde 1.0.0 for Rust released

github.com

51–52 of 52 posts

Re: Serde 1.0.0 for Rust released

#52
post #31

This is really cool. But how does zero-copy deserialization work for &'a str with formats like JSON where the input data may have string escapes (and therefore needs to be mutated during deserialization)?

For the record, I just tested, and it turns out that if you try and decode a string with escapes into a &str, it produces an error rather than giving you the escaped version of the string.
Post reply on HN