Skip to content

Commit

Permalink
Only enable hex/std, alloc when hex is
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
jamillambert committed Feb 14, 2025
1 parent 11770ca commit 7c12d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hashes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 7c12d92

Please sign in to comment.