Closed enebo closed 4 years ago
Ok my problem was that I did not enable serde in enumset. The solution is:
enumset = { version = "1.0.0", features = ["serde"] }
This is probably obvious to an experienced rust dev but I missed the sole line:
For serde support, enable the serde feature.
Maybe add a config line like the one I wrote above to your docs? I don't know if this is something I just should have known or not.
I now have a new issue that I cannot write custom u128 but that is not this issue and I will poke around to see if I can figure that out.
I made a struct along the lines of:
I get an error like this:
I am fairly new to Rust but should this work? I installed cargo-tree and there seems to be no version conflicts. Here is what my toml deps looks like: