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).
This commit is contained in:
Tobin C. Harding 2024-08-21 12:55:55 +10:00 committed by Andrew Poelstra
parent ce36a37d68
commit e1e0230827
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ exclude = ["tests", "contrib"]
default = ["std"] default = ["std"]
std = ["alloc", "internals/std", "io/std", "units/std"] std = ["alloc", "internals/std", "io/std", "units/std"]
alloc = ["internals/alloc", "io/alloc", "units/alloc"] alloc = ["internals/alloc", "io/alloc", "units/alloc"]
serde = ["dep:serde", "internals/serde", "units/serde"] serde = ["dep:serde", "internals/serde", "units/serde", "alloc"]
[dependencies] [dependencies]
internals = { package = "bitcoin-internals", version = "0.3.0" } internals = { package = "bitcoin-internals", version = "0.3.0" }