You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a project with two libs, one (lib1) should depend on the other (lib2)
Make lib1 link a native library. i did this by adding the the diesel crate with the sqlite feature.
Make lib2 link the same native library, but only in its dev-dependencies. i did this using the sqlite crate with default-features off, then on for the dev-dependencies.
This will result in cargo build and cargo test not working due to
error: multiple packages link to native library `sqlite3`, but a native library can be linked only once
however if you build and test the libs seperately you will not get any errors suggesting there is actually no problem, and the error message is incorrect.
Possible Solution(s)
Notes
Output of cargo version: cargo 1.45.0 (744bd1fbb 2020-06-15)
The text was updated successfully, but these errors were encountered:
Thanks for the report! In this particular case, this is a consequence of feature unification. Running with -Zfeatures=all breaks the restriction (#8088), though this is only because it is a post-resolver "links" check.
I'm consolidating links collisions in workspaces in #7880, so I am going to close in favor of that.
Problem
Steps
See test repo here for example.
https://github.com/0xc0deface/cargo_workspace_issue
This will result in
cargo build
andcargo test
not working due tohowever if you build and test the libs seperately you will not get any errors suggesting there is actually no problem, and the error message is incorrect.
Possible Solution(s)
Notes
Output of
cargo version
:cargo 1.45.0 (744bd1fbb 2020-06-15)
The text was updated successfully, but these errors were encountered: