Skip to content

Commit

Permalink
cargo registry - respect renamed dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Nov 5, 2024
1 parent 41b4ef8 commit 1f780df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/packages/cargo/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@ func parsePackage(r io.Reader) (*Package, error) {
dependencies := make([]*Dependency, 0, len(meta.Deps))
for _, dep := range meta.Deps {
dependencies = append(dependencies, &Dependency{
Name: dep.Name,
Name: dep.ExplicitNameInToml,
Req: dep.VersionReq,
Features: dep.Features,
Optional: dep.Optional,
DefaultFeatures: dep.DefaultFeatures,
Target: dep.Target,
Kind: dep.Kind,
Registry: dep.Registry,
Package: &dep.Name,
})
}

Expand Down

0 comments on commit 1f780df

Please sign in to comment.