Oli Scherer

Results 745 comments of Oli Scherer

This is expected. You should use `#[serde(deserialize_with=foo)]` and ```rust fn foo { let s = String::deserialize(d)?; match &s[..] { "true" => Ok(true), "false" => Ok(false), other => Err(D::Error::custom(format!("got {}, but...

No. This is a can of worms that we do not want to open (see https://github.com/RReverser/serde-xml-rs/pull/18). We can offer the function `foo` as a convenience function though, since this seems...

So it works as a root element but not a field?

phew... could you run rustfmt? It's very hard to check out with all these unrelated formatting changes.

Are you using `rustfmt-nightly` or `rustfmt`?

I think this might be a duplicate of #3 . This small example you have shown should definitely **not** require multiple GB of RAM

> But it errors with: Custom("missing field 'elements'") that sounds like a bug. We should never see the name `elements` in any errors if there is a `rename` attribute. If...

We could use specialization for Seek and BufReader. With Seek we can detect the size and then choose between slice, buf or read processing

Not really. Maybe a trace gives some insights?