Skip to content

Commit 9bdf743

Browse files
committed
add patch to fix dependency error
1 parent d1a3417 commit 9bdf743

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
[workspace]
22
members = ["mbedtls", "mbedtls-sys"]
3+
4+
[patch.crates-io]
5+
# This patch resolves a local dependency conflict between `mbedtls` and `mbedtls-selftest`.
6+
# Both of these crates require the native library `mbedtls-sys-auto`.
7+
# By default, Cargo chooses the `mbedtls-sys-auto` version from crates.io for `mbedtls-selftest`,
8+
# which conflicts with the local `mbedtls-sys-auto` used by `mbedtls`.
9+
# This patch ensures the local `mbedtls-sys-auto` is used for both crates.
10+
mbedtls-sys-auto = { path = "./mbedtls-sys" }

0 commit comments

Comments
 (0)