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-22 11:19:46 +09:00
committed by GitHub
parent e8fa2511ff
commit 9f40abc12a
+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"