Pass --package to Cargo #1547 (#2740)

* Fix tests

* Pass package argument to Cargo

* Fix git rev
This commit is contained in:
Matt Hunzinger authored and GitHub committed 2024-07-29 23:11:24 -04:00
1 parent e12acb417e
commit f3ca1484a1
1 file changed
+5
+5
View File
@@ -51,6 +51,11 @@ impl BuildRequest {
cargo_args.push(target.to_string());
}
if let Some(ref platform) = self.build_arguments.target_args.package {
cargo_args.push(String::from("-p"));
cargo_args.push(platform.clone());
}
cargo_args.append(&mut self.build_arguments.cargo_args.clone());
match self.dioxus_crate.executable_type() {