Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-16 - Construct cargo_geiger PackageId from a cargo_metadata #146

Conversation

jmcconnell26
Copy link
Contributor

PackageId:

  • Add method to construct Source from cargo metadata
  • Add tests Source construction
  • Remove further usages of package set

Signed-off-by: joshmc [email protected]

"registry" => {
cargo_geiger_serde::Source::Registry {
// It looks like cargo metadata drops this information
name: String::from("crates.io"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure on this, it looks like it gets dropped by cargo_metadata, I'm not sure if we want to parse this from somewhere else (or even where we would parse it from)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comment is good enough for now.

@jmcconnell26 jmcconnell26 force-pushed the ISSUE-16-ConstructCargoSerdeIdFromCargoMetadataPackageId branch 20 times, most recently from 393cb47 to f40b777 Compare November 25, 2020 18:40
PackageId:
* Add method to construct Source from cargo metadata
* Add tests Source construction
* Remove further usages of package set

Signed-off-by: joshmc <[email protected]>
@jmcconnell26 jmcconnell26 force-pushed the ISSUE-16-ConstructCargoSerdeIdFromCargoMetadataPackageId branch from f40b777 to 6eb451e Compare November 25, 2020 18:54
@jmcconnell26
Copy link
Contributor Author

This should now be ready to go, sorry about the delay, I had a wee bit of trouble with the paths in Windows.

@anderejd
Copy link
Contributor

This should now be ready to go, sorry about the delay, I had a wee bit of trouble with the paths in Windows.

No problem, I'm taking my sweet time getting to reviewing as well it seems. Great work!

@anderejd anderejd merged commit ad439f5 into geiger-rs:master Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants