roogle icon indicating copy to clipboard operation
roogle copied to clipboard

Feature request: Index workspace

Open gilescope opened this issue 4 years ago • 0 comments

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() {
}

gilescope avatar Sep 29 '21 07:09 gilescope