From 1f9c48b5d3a48868419ce2f3080d88059c48f767 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 24 Jun 2025 13:01:51 +1000 Subject: [PATCH] units: Set explicit internals dependency version to v0.4.0 `cargo publish` does not allow publishing a crate without all dependencies having explicit version numbers. We discovered recently that having patching the root manifest was annoying when downstream testing so we removing the version numbers in #4284 in favor of `path`. It turns out we can include both. Props to nyonson for discovering that. ref: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations Use an explicit version number to the `internals` dep in `units`. --- units/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/Cargo.toml b/units/Cargo.toml index 1bad34a7c..078c9a642 100644 --- a/units/Cargo.toml +++ b/units/Cargo.toml @@ -18,13 +18,13 @@ std = ["alloc", "internals/std"] alloc = ["internals/alloc","serde?/alloc"] [dependencies] -internals = { package = "bitcoin-internals", path = "../internals" } +internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0" } serde = { version = "1.0.103", default-features = false, optional = true } arbitrary = { version = "1.4", optional = true } [dev-dependencies] -internals = { package = "bitcoin-internals", path = "../internals", features = ["test-serde"] } +internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0", features = ["test-serde"] } bincode = "1.3.1" serde = { version = "1.0.103", default-features = false, features = ["derive"] } serde_test = "1.0"