Skip to content

Commit e8c5027

Browse files
authored
Merge pull request #146 from PhilippMolitor/feature/manifest-path
support cargo's `--manifest-path`
2 parents b9c664f + 8945137 commit e8c5027

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ To see all the flags the proxied tool accepts run `cargo-{} -- --help`.{}",
223223
.long("profile")
224224
.value_name("PROFILE-NAME")
225225
.help("Build artifacts with the specified profile"),
226+
Arg::new("manifest-path")
227+
.long("manifest-path")
228+
.help("Path to Cargo.tom"),
226229
Arg::new("features")
227230
.long("features")
228231
.short('F')
@@ -510,6 +513,10 @@ fn cargo_build_args<'a>(matches: &'a ArgMatches, cargo: &mut Command) -> (BuildT
510513
cargo.arg(profile);
511514
}
512515

516+
if let Some(manifest_path) = matches.get_one::<String>("manifest-path") {
517+
cargo.args(["--manifest-path", manifest_path]);
518+
}
519+
513520
if let Some(features) = matches.get_many::<String>("features") {
514521
for feature in features {
515522
cargo.args(["--features", feature]);

0 commit comments

Comments
 (0)