#cargo-subcommand #cargo #cargo-version #deps #dependencies #subcommand

app cargo-duplicates

Cargo subcommand for displaying when different versions of a same dependency are pulled in

16 unstable releases (7 breaking)

Uses new Rust 2024

0.8.4 Mar 1, 2025
0.7.0 Aug 20, 2024
0.6.0 May 3, 2024
0.5.1 Apr 13, 2022
0.3.1 Nov 19, 2020

#86 in Cargo plugins

Download history 19/week @ 2024-11-19 17/week @ 2024-11-26 6/week @ 2024-12-03 24/week @ 2024-12-10 3/week @ 2024-12-17 19/week @ 2025-01-07 2/week @ 2025-01-14 14/week @ 2025-02-04 6/week @ 2025-02-11 35/week @ 2025-02-18 728/week @ 2025-02-25 144/week @ 2025-03-04

914 downloads per month

MIT license

27KB
120 lines

cargo-duplicates

A cargo subcommand for displaying when different versions of a same dependency are pulled in. You can shorten the output by passing --short as argument.

Demo

Once installed, running cargo duplicates in a project directory looks like the following:

Package    Versions
-------    --------
hex        0.4.3  0.3.2
rand_core  0.6.3  0.5.1

hex 0.4.3:
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => hex 0.4.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => cargo-util 0.1.1 => hex 0.4.3
hex 0.3.2:
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => cargo-util 0.1.1 => crypto-hash 0.3.4 => hex 0.3.2

rand_core 0.6.3:
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => tempfile 3.2.0 => rand 0.8.4 => rand_core 0.6.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => cargo-util 0.1.1 => tempfile 3.2.0 => rand 0.8.4 => rand_core
  0.6.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => tempfile 3.2.0 => rand 0.8.4 => rand_chacha 0.3.1 => rand_core
  0.6.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => cargo-util 0.1.1 => tempfile 3.2.0 => rand 0.8.4 => rand_chacha
  0.3.1 => rand_core 0.6.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => tempfile 3.2.0 => rand 0.8.4 => rand_hc 0.3.1 => rand_core 0.6.3
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => cargo-util 0.1.1 => tempfile 3.2.0 => rand 0.8.4 => rand_hc 0.3.1
  => rand_core 0.6.3
rand_core 0.5.1:
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => im-rc 15.0.0 => rand_core 0.5.1
- Because of cargo-duplicates 0.4.0 => cargo 0.57.0 => im-rc 15.0.0 => rand_xoshiro 0.4.0 => rand_core 0.5.1

Dependencies

~96MB
~2M SLoC