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

Feature request: Index workspace #6

Open
gilescope opened this issue Sep 29, 2021 · 0 comments
Open

Feature request: Index workspace #6

gilescope opened this issue Sep 29, 2021 · 0 comments

Comments

@gilescope
Copy link

Would be cool to point this at a large workspace and have it index all the crates it finds there.

I did something similar for undepend. Something like this should do the trick:

use cargo_metadata::{Metadata, MetadataCommand};

 let metadata = MetadataCommand::new()
        .manifest_path(repo_dir.join("Cargo.toml"))
        .exec()
        .unwrap();

 for package in metadata.workspace_members.iter() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants