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

Use cargo_metadata to get manifest data #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oeb25
Copy link

@oeb25 oeb25 commented Feb 13, 2023

This commit uses the cargo_metadata crate to derive information about the crate, as opposed to only parsing Cargo.toml.

In particular, this helps when fields in the manifest are inherited from the workspace, for example if version = { workspace = true }.

One thing cargo_metadata does not provide, is badges, so these are still parsed from Cargo.toml.

The error messages also changed as a result of propagating the errors from cargo_metadata, and thus some of the tests had to be altered.

This commit uses the `cargo_metadata` crate to derive information about
the crate, as opposed to only parsing `Cargo.toml`.

In particular, this helps when fields in the manifest are inherited from
the workspace, for example if `version = { workspace = true }`.

One thing `cargo_metadata` does not provide, is badges, so these are
still parsed from `Cargo.toml`.

The error messages also changed as a result of propagating the errors
from `cargo_metadata`, and thus some of the tests had to be altered.
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.

None yet

1 participant