From 7c12d92bc3011e1305238f0f5d3b155a01875814 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Fri, 14 Feb 2025 12:30:16 +0000 Subject: [PATCH] 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. --- hashes/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index 35760c87e1..25e213790d 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -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 = []