Skip to content

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.

1 participant