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:
parent
ce36a37d68
commit
e1e0230827
|
@ -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" }
|
||||||
|
|
Loading…
Reference in New Issue