Allow using serde feature in no_std environment (#385)

When `serde` is used, it would enable its default feature `std`.
This of course breaks no_std build.

Fix this by disabling serde's default features. This should work for
both serde + std and serde + no_std case.
This commit is contained in:
Cheng XU
2020-05-21 19:19:46 -07:00
committed by GitHub
parent 90581d7f26
commit 9e4da2b6cc
+1 -1
View File
@@ -25,7 +25,7 @@ default = ["std"]
std = []
[dependencies]
serde = { version = "1.0", optional = true }
serde = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
[dev-dependencies]
serde_test = "1.0"