What changed, and why it matters
This commit simply removes an unused library dependency (bitcoin-io) from the p2p crate after a newer encoding library made it unnecessary. There is no code change, no bug fix, and no security issue visible in the diff.
No security action needed. Treat as routine dependency cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit updates p2p/Cargo.toml and the lock files to drop the bitcoin-io dependency and remove io/std from the std feature list. The commit message states this is possible because bitcoin-consensus-encoding now provides the needed functionality. No source code is modified.
Changed components
p2p/Cargo.tomlCargo-minimal.lockCargo-recent.lockInspect captured patch +1 / −4
diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock
index 0cbb79ac..2293ea15 100644
--- a/Cargo-minimal.lock
+++ b/Cargo-minimal.lock
@@ -200,7 +200,6 @@ dependencies = [
"bitcoin 0.33.0-beta",
"bitcoin-consensus-encoding",
"bitcoin-internals 0.5.0",
- "bitcoin-io 0.5.0",
"bitcoin-network-kind",
"bitcoin-primitives",
"bitcoin-units 0.3.0",
diff --git a/Cargo-recent.lock b/Cargo-recent.lock
index e33dff60..23079b50 100644
--- a/Cargo-recent.lock
+++ b/Cargo-recent.lock
@@ -199,7 +199,6 @@ dependencies = [
"bitcoin 0.33.0-beta",
"bitcoin-consensus-encoding",
"bitcoin-internals 0.5.0",
- "bitcoin-io 0.5.0",
"bitcoin-network-kind",
"bitcoin-primitives",
"bitcoin-units 0.3.0",
diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml
index 18acd853..1d8bbc16 100644
--- a/p2p/Cargo.toml
+++ b/p2p/Cargo.toml
@@ -15,7 +15,7 @@ exclude = ["tests", "contrib"]
[features]
default = ["std"]
-std = ["encoding/std", "hashes/std", "network/std", "hex-stable/std", "hex-unstable/std", "internals/std", "io/std", "units/std", "bitcoin/std", "primitives/std"]
+std = ["encoding/std", "hashes/std", "network/std", "hex-stable/std", "hex-unstable/std", "internals/std", "units/std", "bitcoin/std", "primitives/std"]
arbitrary = ["dep:arbitrary", "bitcoin/arbitrary"]
serde = ["dep:serde", "hashes/serde"]
@@ -28,7 +28,6 @@ primitives = { package = "bitcoin-primitives", path = "../primitives", version =
hex-stable = { package = "hex-conservative", version = "1.0.0", default-features = false, features = ["alloc"] }
hex-unstable = { package = "hex-conservative", version = "0.3.2", default-features = false }
internals = { package = "bitcoin-internals", path = "../internals", default-features = false }
-io = { package = "bitcoin-io", version = "0.5.0", path = "../io", default-features = false }
units = { package = "bitcoin-units", path = "../units", version = "0.3.0", default-features = false }
arbitrary = { version = "1.4.1", optional = true }
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.