Closed ChrisMacNaughton closed 8 years ago
It's a stack overflow. #[derive(Debug)]
generates a very long method chain, might be related.
@ChrisMacNaughton
Consider splitting your struct.
We can work around this in derive-Debug
@arielb1 it's a struct for parsing json with rustc_serialize. I'm not sure that I can split the struct and parse the json separately?
@ChrisMacNaughton
Auto-generated structs suck. Can't you change your JSON?
unfortunately, it's not my JSON, it's JSON coming out of ceph. I'm trying to parse it and deal with it but can't really change it :(
Should be an easy fix to change #[derive(Debug)]
to not chain builder calls.
When compiling the below struct, I get a compiler error:
Meta
rustc --version --verbose
: