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

--features doesn't work for cargo metadata in projects with workspaces #5439

Closed
koute opened this issue Apr 29, 2018 · 1 comment
Closed

Comments

@koute
Copy link
Member

koute commented Apr 29, 2018

Steps to reproduce:

cargo new --lib foo
cd foo
echo '[workspace]' >> Cargo.toml
echo 'members = ["bar"]' >> Cargo.toml
cargo new --lib bar
cargo metadata --features dummy

This generates the following error on cargo 1.27.0-nightly (0a1add2 2018-04-20):

error: cannot specify features for more than one package

This completely breaks --features usage in cargo-web on nightly (koute/cargo-web#95).

It works as expected on stable. This is possibly related to #5364.

@koute koute changed the title --feature doesn't work for cargo metadata in projects with virtual manifests --feature doesn't work for cargo metadata in projects with workspaces Apr 29, 2018
@koute koute changed the title --feature doesn't work for cargo metadata in projects with workspaces --features doesn't work for cargo metadata in projects with workspaces Apr 29, 2018
@alexcrichton
Copy link
Member

I believe this was reverted and fixed in #5430, so closing in favor of that

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

No branches or pull requests

2 participants