Closed ghproek closed 8 months ago
OrderedFloat implements Deserialize when the optional serde
dependency is enabled:
https://github.com/reem/rust-ordered-float/blob/v4.2.0/src/lib.rs#L1882
To enable it, run cargo add ordered-float --features serde
or add this to your Cargo.toml
dependencies section:
ordered-float = { version = "4.2.0", features = ["serde"] }
I get an error saying that OrderedFloat doesn't implement Deserialize, but I think you can just do this with a macro, no? From the serde documentation: