From e1e02308272722d7efc9c5b922587335ccae2572 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 21 Aug 2024 12:55:55 +1000 Subject: [PATCH] primitives: Enable alloc from serde Currently the `serde` feature requires an allocator, this is a hang over from code being written for the `bitcoin` crate. This was not found because we are not testing `primitives` correctly in CI (there is the `fuzz` bug and also `primitives` is not even in the CRATES list). --- primitives/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index d4d760d87..9a293fdaf 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -18,7 +18,7 @@ exclude = ["tests", "contrib"] default = ["std"] std = ["alloc", "internals/std", "io/std", "units/std"] alloc = ["internals/alloc", "io/alloc", "units/alloc"] -serde = ["dep:serde", "internals/serde", "units/serde"] +serde = ["dep:serde", "internals/serde", "units/serde", "alloc"] [dependencies] internals = { package = "bitcoin-internals", version = "0.3.0" }