Skip to content

Commit fc0f0af

Browse files
committed
Adding tool manifest path to cargo metadata command
1 parent 3d69bc1 commit fc0f0af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ pub fn run(tool: Tool, matches: ArgMatches) -> Result<i32> {
291291
if matches.get_flag("all-features") {
292292
metadata_command.features(CargoOpt::AllFeatures);
293293
}
294+
if let Some(path) = matches.get_one::<String>("manifest-path") {
295+
metadata_command.manifest_path(path);
296+
}
294297
let metadata = metadata_command.exec()?;
295298
if metadata.workspace_members.is_empty() {
296299
bail!("Unable to find workspace members");

0 commit comments

Comments
 (0)