Skip to content

Commit

Permalink
primitives: Do not depend on bitcoin_io
Browse files Browse the repository at this point in the history
Currently the `primitives` crate does not use the `io` dependency. I
don't know if this is just a mistake of if it used to and the manifest
is just stale.
  • Loading branch information
tcharding committed Feb 9, 2025
1 parent 9c3a52b commit 9833ca3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ dependencies = [
"arbitrary",
"bincode",
"bitcoin-internals",
"bitcoin-io",
"bitcoin-units",
"bitcoin_hashes 0.16.0",
"hex-conservative 0.3.0",
Expand Down
1 change: 0 additions & 1 deletion Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ dependencies = [
"arbitrary",
"bincode",
"bitcoin-internals",
"bitcoin-io",
"bitcoin-units",
"bitcoin_hashes 0.16.0",
"hex-conservative 0.3.0",
Expand Down
5 changes: 2 additions & 3 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ exclude = ["tests", "contrib"]

[features]
default = ["std"]
std = ["alloc", "hashes/std", "hex/std", "internals/std", "io/std", "units/std"]
alloc = ["hashes/alloc", "hex/alloc", "internals/alloc", "io/alloc", "units/alloc"]
std = ["alloc", "hashes/std", "hex/std", "internals/std", "units/std"]
alloc = ["hashes/alloc", "hex/alloc", "internals/alloc", "units/alloc"]
serde = ["dep:serde", "hashes/serde", "internals/serde", "units/serde", "alloc"]
arbitrary = ["dep:arbitrary", "units/arbitrary"]

[dependencies]
hashes = { package = "bitcoin_hashes", version = "0.16.0", default-features = false, features = ["bitcoin-io", "hex"] }
hex = { package = "hex-conservative", version = "0.3.0", default-features = false }
internals = { package = "bitcoin-internals", version = "0.4.0" }
io = { package = "bitcoin-io", version = "0.2.0", default-features = false }
units = { package = "bitcoin-units", version = "0.2.0", default-features = false }

arbitrary = { version = "1.4", optional = true }
Expand Down

0 comments on commit 9833ca3

Please sign in to comment.