cargo-udeps icon indicating copy to clipboard operation
cargo-udeps copied to clipboard

Find unused dependencies in Cargo.toml

Results 55 cargo-udeps issues
Sort by recently updated
recently updated
newest added

This pull requests fixes #84 issue. It does so by setting `"reachable_only": false` flag for `RUST_SAVE_ANALYSIS_CONFIG` env variable. This flag enables populations of `"refs"` field in save-analysis files. These `"refs"`...

Currently, [cargo-binstall](https://github.com/ryankurte/cargo-binstall) cannot be used for cargo-udeps on macOS due to alexcrichton/tar-rs#295.

It seems like `target_os` is not supported, leading to false positives.

bug

Great tool. Thank you. On M1 I get the following error ``` error: failed to run custom build command for `openssl-sys v0.9.73` --- stdout cargo:rustc-cfg=const_fn cargo:rerun-if-env-changed=AARCH64_APPLE_DARWIN_OPENSSL_LIB_DIR AARCH64_APPLE_DARWIN_OPENSSL_LIB_DIR unset cargo:rerun-if-env-changed=OPENSSL_LIB_DIR OPENSSL_LIB_DIR...

I naively expected this to work https://github.com/WilliamVenner/prefer-dynamic/blob/3fdd7ba908f86f99ee11a9c7d203cb39fa93299a/Cargo.toml#L12-L14

With the following Cargo.toml ``` [package] name = "test-udeps" version = "0.1.0" edition = "2021" [dependencies] libc = "0.2.93" ``` Running with CARGO_TARGET_DIR works as expected, but using --target-dir causes...

Currently, `cargo +nightly udeps` shows `All deps seem to have been used.` for below: ```Cargo.toml [dependencies] chrono = "0.4" time = "0.1" ``` ```rust fn main() { println!("{:?}", chrono::Local::now()); }...

I have a workspace that contains a crate with no dependencies, which is depended on by a few other crates in the same workspace. Running `cargo udeps` in the workspace...

bug

It'd be cool if we could use the tool to do that as well o.o

enhancement

It would be nice, if the unused dependencies were sorted in the order found in the user `Cargo.toml` file.

enhancement