Skip to content

Commit 9f40abc

Browse files
authored
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.
1 parent e8fa251 commit 9f40abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ default = ["std"]
2525
std = []
2626

2727
[dependencies]
28-
serde = { version = "1.0", optional = true }
28+
serde = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
2929

3030
[dev-dependencies]
3131
serde_test = "1.0"

0 commit comments

Comments
 (0)