Keruspe / cargo-duplicates

A cargo subcommand for displaying when different versions of a same dependency are pulled in
19 stars 1 forks source link

Cargo workspace support. #7

Open martinfrances107 opened 1 year ago

martinfrances107 commented 1 year ago

It looks like parsing of Cargo.toml files in the context of workspaces does not work.

That is parsing does not yet support workspaces.

when I supply a valid Cargo.toml file ( cargo check report the definitions are valid )

BUT I make reference to values listed in the root workspace as follows

 authors = { workspace = true }
 categories = { workspace = true }
 edition = { workspace = true }

Then I see errors like this

Caused by: failed to parse manifest at XX/rust_d3_geo/examples/globe/canvas/Cargo.toml

Caused by: invalid type: map, expected a sequence for key package.authors

zoechi commented 5 months ago

cargo tree -d solves it