Closed ascjones closed 4 years ago
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 .
[package.metadata.cargo-xbuild]
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.
metadata.resolve
cargo-metadata
Fixes #54
Published as version 0.5.23
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 updatescargo-metadata
to the most recent version.Fixes #54