Closed JarredAllen closed 2 years ago
You need to explicitly enable the std
feature for serde-json-core
, not just serde
, if you want this library to compile where serde
's std
feature is enabled.
Oh, my bad, I missed that this feature exists. Thanks.
I'm writing a library which uses
serde
and which may be used with or withoutstd
present. I also need to do some JSON manipulation. Theserde-json
library depends onalloc
, which I can't do, so I have to use this library. However, this library seems to not compile if I compile it withserde
having the featurestd
enabled. Specifically, this is the compile error I get:I encounter this issue if I make a new package and put this crate and
serde
as dependencies. For reference, it compiles fine if I don't include thestd
feature onserde
. Also, I'm using rust version 1.61.Can this crate be changed to not break if it gets used with
serde
withstd
enabled?