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`.
This commit is contained in:
Tobin C. Harding 2025-06-24 13:01:51 +10:00
parent 732a83c3a9
commit 1f9c48b5d3
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 2 additions and 2 deletions

View File

@ -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"