Only enable hex/std, alloc when hex is
`hex/std` and `hex/alloc` should only be included if optional dependency `hex` is enabled`. Add `?` so it is only included if the optional feature `hex` is enabled.
This commit is contained in:
parent
11770cac1c
commit
7c12d92bc3
|
@ -15,8 +15,8 @@ exclude = ["tests", "contrib"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = ["alloc", "hex/std"]
|
std = ["alloc", "hex?/std"]
|
||||||
alloc = ["hex/alloc"]
|
alloc = ["hex?/alloc"]
|
||||||
serde = ["dep:serde", "hex"]
|
serde = ["dep:serde", "hex"]
|
||||||
# Smaller (but slower) implementation of sha256, sha512 and ripemd160
|
# Smaller (but slower) implementation of sha256, sha512 and ripemd160
|
||||||
small-hash = []
|
small-hash = []
|
||||||
|
|
Loading…
Reference in New Issue