David Tolnay

Results 700 comments of David Tolnay

As of new versions of serde_yaml I think your program just does what you want. ```console is ok this is ok ```

> serde is too frequent to update for me. Thanks for the feedback @cosmo0920. What frequency of updates would you be more comfortable with?

Thanks for the details. The feature-gated functionality is replaced by macros 1.1 and is stable as of Rust 1.15, which will be released tomorrow February 2. Starting tomorrow, Serde will...

There are no guarantees around what modification is made to the input string. In the example above, `b'z'` happens to be duplicated to account for the difference in length.

So far I don't think serde-yaml has had any attention paid to compile times, so hopefully that means there is a lot of room for improvement. I opened https://github.com/dtolnay/serde-yaml/pull/96 as...

I would prefer not to have this in this library, but it would be reasonable for someone else to implement a more fully featured YAML library which implements this.

I don't think this would require any further upstream support, since [`SeqAccess`](https://docs.serde.rs/serde/de/trait.SeqAccess.html) is already effectively an iterator. The only change here would be intercepting `deserialize_seq` and, if the input contains...

I think streaming subobjects is in scope for serde_json. :) I don't see why it wouldn't be. Once that exists, anything we'd added that is entirely specific to top level...

@webmaster128: https://stackoverflow.com/a/1580682/6086311

My impression was that for streaming serialization and deserialization use cases you typically want the data to be framed, as with [`tokio-serde-json`](https://github.com/carllerche/tokio-serde-json). You mostly only care about JSON processing time...