Comments (6)
Thanks for the tool! It promises to be really helpful
from cargo-udeps.
Yes, in this instance the crate is used both as build dependency and normal dependency. I've ran into this multiple times myself. Thanks for filing the bug.
from cargo-udeps.
I'm attempting to use this on https://github.com/libra/libra and it's failing with a similar error:
❯ cargo udeps
Error: StrErr("current implementation cannot handle multiple crates with the same `lib` name:
`admission_control_service v0.1.0 (/Users/metajack/src/libra/admission_control/admission_control_service)`
├── "admission_control_proto" → "admission_control_proto"
├── "admission_control_proto" → "admission_control_proto"
└── ..")
But admission_control_proto is not listed twice anywhere that I can see. Looks like the error message might be incorrect?
from cargo-udeps.
PRs to fix it are welcome!
from cargo-udeps.
@metajack The problem can be fixed by this. (I don't know why)
for (to_pkg, deps) in resolve.deps(from) {
+ // `Resolve::deps` rarely returns multiple same `Dependenc`ies.
+ let deps = deps.iter().collect::<BTreeSet<_>>();
But unfortunately cargo-udeps
still does not work for libra
because admission_control_service
depends on both futures
v0.1 and futures
v0.3.
Error: StrErr("current implementation cannot handle multiple crates with the same `lib` name:
`admission_control_service v0.1.0 (/home/ryo/src/libra/admission_control/admission_control_service)`
└── (dev-)dependencies
├── "futures03" → "futures"
├── "futures" → "futures"
└── ..")
[dependencies]
futures = "0.1.28"
futures03 = { version = "=0.3.0-alpha.17", package = "futures-preview" }
from cargo-udeps.
Still not working even though replacing futures
v0.1 with futures01
.
Though I wrote the error, The error should be probably a warning.
Error: StrErr("current implementation cannot handle multiple crates with the same `lib` name:
`libra_wallet v0.1.0 (/home/ryo/src/libra/client/libra_wallet)`
└── (dev-)dependencies
├── "rust-crypto" → "crypto"
├── "libra_crypto" → "crypto"
└── ..")
from cargo-udeps.
Related Issues (20)
- tests/normal-dev-build.rs test failures since update of cargo HOT 3
- recognize .cargo/config.toml
- How to add `-Zbuild-std` option? HOT 3
- `cargo-udeps` 1.0.36 crashes when given a `manifest-path` HOT 1
- v0.1.36 release does not contain pre-built binaries in the assets section HOT 3
- Failed to install on Mac M1 chip HOT 3
- [email protected] is broken on latest version of Rust nightly HOT 2
- error: failed to compile cargo-udeps v0.1.41 HOT 2
- Fails to build HOT 1
- Doesn't support `debug = "line-tables-only"` HOT 2
- False positive warning on duplicate dependency
- unknown unstable option: `save-analysis` HOT 1
- regression test failure on macOS sonoma HOT 9
- Adds feature enabling Rustls rather than OpenSSL HOT 2
- Getting this uncought exception when attempting to test on [arbiter](https://github.com/primitivefinance/arbiter/issues/608) HOT 1
- Latest `cargo-credential-libsecret` breaks `cargo-udeps` HOT 6
- Support `workspace.metadata.cargo-udeps.ignore` to ignore dependencies in whole workspace HOT 4
- 0.1.46 release was not completed HOT 5
- Found a `cargo::key=value` build directive which is reserved for future use HOT 2
- Fails to run on macOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-udeps.