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

Pick up xbuild config from workspace manifest #57

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

ascjones
Copy link

@ascjones ascjones commented Feb 11, 2020

If the Cargo.toml defines a workspace, then the [package.metadata.cargo-xbuild] may not be picked up, and the default configuration will be used silently .

This is because the current code assumes that the root package is the first one: https://github.com/rust-osdev/cargo-xbuild/blob/master/src/config.rs#L21.

This PR infers the root package via metadata.resolve. It also updates cargo-metadata to the most recent version.

Fixes #54

Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@phil-opp phil-opp merged commit cb5d0e4 into rust-osdev:master Feb 12, 2020
phil-opp added a commit that referenced this pull request Feb 12, 2020
@phil-opp
Copy link
Member

Published as version 0.5.23

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.

Package metadata only used for first workspace member
2 participants