Skip to content

Instantly share code, notes, and snippets.

@sahandevs
Created June 11, 2022 05:47
Show Gist options
  • Save sahandevs/634a0ed2a19b160897acb7ec7b7e38f4 to your computer and use it in GitHub Desktop.
Save sahandevs/634a0ed2a19b160897acb7ec7b7e38f4 to your computer and use it in GitHub Desktop.
`cargo-duplicates` crate

A cargo subcommand for displaying when different versions of a same dependency are pulled in.

$ cargo install cargo-duplicates
$ cargo duplicates
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

read more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment