Make serde dependency no_std as well

This commit is contained in:
Steven Roose 2021-03-09 12:08:30 +00:00
parent 1f1d761930
commit 8097eba396
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ path = "src/lib.rs"
[features] [features]
default = [ "std" ] default = [ "std" ]
std = [] std = [ "serde/std" ]
# Note: English is the standard for bip39 so always included # Note: English is the standard for bip39 so always included
chinese-simplified = [] chinese-simplified = []
@ -44,7 +44,7 @@ bitcoin_hashes = "0.9.4"
unicode-normalization = "=0.1.9" unicode-normalization = "=0.1.9"
rand = { version = "0.6.0", optional = true } rand = { version = "0.6.0", optional = true }
serde = { version = "1.0", optional = true } serde = { version = "1.0", default-features = false, optional = true }
[dev-dependencies] [dev-dependencies]
rand = { version = "0.6.0", optional = false } rand = { version = "0.6.0", optional = false }