Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Add virtual manifest support #41

Closed
bjgill opened this issue Jun 18, 2018 · 3 comments
Closed

Add virtual manifest support #41

bjgill opened this issue Jun 18, 2018 · 3 comments

Comments

@bjgill
Copy link

bjgill commented Jun 18, 2018

In a workspace with a virtual manifest (one with [workspace], but not [package]), we get the following error message:

$ cargo tree
error: manifest path `<path>/Cargo.toml` is a virtual manifest, but this command requires running against an actual package in this workspace

I suspect it should be fairly straightforward to switch over to using https://crates.io/crates/cargo_metadata to get the set of dependencies and their relationships. Cargo-metadata is fully workspace-aware - we use it in cargo-edit for this purpose

@sfackler
Copy link
Owner

What would the dependency graph of a virtual manifest be?

cargo-metadata doesn't include enough information for us to be able to use it: #20

@mimoo
Copy link

mimoo commented Aug 7, 2019

@sfackler it would be the result of running cargo tree on all the listed members.

@mlindner
Copy link

mlindner commented Oct 6, 2019

@sfackler Please re-open this. Cargo tree needs to support virtual manifests. It should iterate through all entries in the virtual manifest. Cargo.toml lists a list of subpackages and it should show the trees for all of them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants