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:
Jamil Lambert, PhD 2025-02-14 12:30:16 +00:00
parent 11770cac1c
commit 7c12d92bc3
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ exclude = ["tests", "contrib"]
[features]
default = ["std"]
std = ["alloc", "hex/std"]
alloc = ["hex/alloc"]
std = ["alloc", "hex?/std"]
alloc = ["hex?/alloc"]
serde = ["dep:serde", "hex"]
# Smaller (but slower) implementation of sha256, sha512 and ripemd160
small-hash = []