From 03f84e9ab4d884b1bb51d71facd0868339e1c5e2 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Fri, 6 Dec 2024 21:51:06 +0100 Subject: [PATCH] fix: make alloc without std work (#377) During the refactor at 954e5233d273a2b7d682fd087178203628d131a4 the ability to compile the `multihash` crate with `alloc` but without `std` was lost. Now it works again. Fixes #375. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1246a66..cd292bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.64" [features] default = ["std"] std = ["unsigned-varint/std", "alloc"] -alloc = [] +alloc = ["core2/alloc"] arb = ["dep:quickcheck", "dep:rand", "dep:arbitrary"] scale-codec = ["dep:parity-scale-codec"] serde-codec = ["serde"] # Deprecated, don't use.