Comments (6)
cc @qryxip
from cargo-udeps.
The issue was that crates-io had a lib name that was different from the package name. crates-io
was the package name while crates_io
was the lib name. Other packages with dashes have dashes in their lib name too, it's just that crates-io
has a custom [lib]
section with a name = "crates_io"
entry.
from cargo-udeps.
In fd3cedf i added a fallback search based on the pkg name instead of the lib name. @qryxip Is the lib name based search actually needed at all?
from cargo-udeps.
I checked with fd3cedf now and there's still a failure with cargo the FIRST time I run cargo-udeps:
Loading save analysis from "/home/matthias/vcs/github/cargo/target/debug/deps/save-analysis/libcrates_io-728b49bbdee2d583.json"
thread 'main' panicked at 'could not find "curl"', /home/matthias/.cargo/git/checkouts/cargo-udeps-a54b3ec58ed788c4/fd3cedf/src/main.rs:402:24
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.35/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.35/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:47
3: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:36
4: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:200
5: std::panicking::default_hook
at src/libstd/panicking.rs:214
6: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:477
7: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:384
8: std::panicking::begin_panic_fmt
at src/libstd/panicking.rs:339
9: cargo_udeps::main::{{closure}}
10: cargo_udeps::main
11: std::rt::lang_start::{{closure}}
12: std::rt::lang_start_internal::{{closure}}
at src/libstd/rt.rs:49
13: std::panicking::try::do_call
at src/libstd/panicking.rs:296
14: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:80
15: std::panicking::try
at src/libstd/panicking.rs:275
16: std::panic::catch_unwind
at src/libstd/panic.rs:394
17: std::rt::lang_start_internal
at src/libstd/rt.rs:48
18: main
19: __libc_start_main
20: _start
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
A second run right after just says All deps seem to have been used.
and exits normally. 🤔
from cargo-udeps.
After 6213e29 the error message is improved. The problem seems to be that crates-io
is not a member of cargo's workspace but is only a path dependency. However, cargo-udeps lints for all path dependencies, workspace members or not. I'll review #18 soon.
from cargo-udeps.
Looks like that fixed it, thanks!
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.