Allow cargo tree
to run despite native library conflicts
#14512
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-tree
S-triage
Status: This issue is waiting on initial triage.
Problem
cargo tree
can be helpful for debugging dependency trees.Take this simplified example
Cargo.toml
:This crate depends on two major versions of
sqlx
, which in turn depend on two major versions oflibsqlite3-sys
. Since both of theselibsqlite3-sys
s linksqlite3
, cargo will refuse to build this project:Since my project is often more complex than this example, it may not be immediately obvious where the dependency on the old version of
libsqlite3-sys
is coming from. To debug this, I attempt to runcargo tree -i [email protected]
.Unfortunately, that isn't very helpful:
Proposed Solution
Ignore conflicts due to multiple dependencies linking the same native library when resolving for
cargo tree
Notes
No response
The text was updated successfully, but these errors were encountered: