Skip to content

Commit 09477ce

Browse files
committed
units: disable default features in encoding
1 parent ced4b9c commit 09477ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

units/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ exclude = ["tests", "contrib"]
1414

1515
[features]
1616
default = ["std"]
17-
std = ["alloc", "internals/std"]
18-
alloc = ["internals/alloc","serde?/alloc"]
17+
std = ["alloc", "internals/std", "encoding?/std"]
18+
alloc = ["internals/alloc", "serde?/alloc", "encoding?/alloc"]
1919

2020
[dependencies]
21-
encoding = { package = "consensus-encoding", path = "../consensus_encoding", optional = true }
21+
encoding = { package = "consensus-encoding", path = "../consensus_encoding", default-features = false, optional = true }
2222
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0" }
2323

2424
serde = { version = "1.0.195", default-features = false, features = ["derive"], optional = true }

0 commit comments

Comments
 (0)