From 9833ca32ce6948069fff92846022cdbd0f91b7dd Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 10 Feb 2025 10:50:59 +1100 Subject: [PATCH] primitives: Do not depend on bitcoin_io 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. --- Cargo-minimal.lock | 1 - Cargo-recent.lock | 1 - primitives/Cargo.toml | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index 5e47891e0..ecd87a177 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -107,7 +107,6 @@ dependencies = [ "arbitrary", "bincode", "bitcoin-internals", - "bitcoin-io", "bitcoin-units", "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index 47641c992..16d558d3d 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -106,7 +106,6 @@ dependencies = [ "arbitrary", "bincode", "bitcoin-internals", - "bitcoin-io", "bitcoin-units", "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index a44c42c6e..48074486c 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -16,8 +16,8 @@ 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"] @@ -25,7 +25,6 @@ arbitrary = ["dep:arbitrary", "units/arbitrary"] 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 }