Add patch section to test crates

In order to keep the embedded and schemacs test crates building when we
update their local transient dependencies we need to use a `patch`
section.

- For `bitcoin/embedded` add `patch` section for `internals`, `hashes`
already has an entry.
- For `hashes/embedded` add `patch` section for `internals`.
- For `hashes/extendend_tests/schemars` add `patch` section for
  `internals`.

FTR for direct local dependencies we use a `path` field when specifying
the dependency.
This commit is contained in:
Tobin C. Harding 2023-06-28 09:25:21 +10:00
parent 512d982275
commit 94732aecbf
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 9 additions and 0 deletions

View File

@ -30,3 +30,6 @@ lto = true # better optimizations
[patch.crates-io.bitcoin_hashes] [patch.crates-io.bitcoin_hashes]
path = "../../hashes" path = "../../hashes"
[patch.crates-io.bitcoin-internals]
path = "../../internals"

View File

@ -30,3 +30,6 @@ bench = false
codegen-units = 1 # better optimizations codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations lto = true # better optimizations
[patch.crates-io.bitcoin-internals]
path = "../../internals"

View File

@ -18,3 +18,6 @@ serde = { version = "1.0", default-features = false}
schemars = "0.8.3" schemars = "0.8.3"
serde_test = "1.0" serde_test = "1.0"
serde_json = "1.0" serde_json = "1.0"
[patch.crates-io.bitcoin-internals]
path = "../../../internals"