$ cargo build --manifest-path /Applications/MAMP/htdocs/FireDBG.for.Rust.Internal/parser/tests/example-workspace/Cargo.toml --bin main-one Finished dev [unoptimized + debuginfo] target(s) in 0.03s
(&self, package: &Package)
| 250 | // $ cargo build --manifest-path /Applications/MAMP/htdocs/FireDBG.for.Rust.Internal/parser/tests/example-workspace/Cargo.toml --bin main-one |
| 251 | // Finished dev [unoptimized + debuginfo] target(s) in 0.03s |
| 252 | pub fn get_build_cmd(&self, package: &Package) -> Command { |
| 253 | let root_dir = &package.root_dir; |
| 254 | let binary_name = &self.name; |
| 255 | let mut cmd = Command::new("cargo"); |
| 256 | cmd.arg("build") |
| 257 | .arg("--manifest-path") |
| 258 | .arg(format!("{root_dir}/Cargo.toml")) |
| 259 | .arg("--bin") |
| 260 | .arg(binary_name); |
| 261 | if !self.required_features.is_empty() { |
| 262 | cmd.arg("--features").arg(self.required_features.join(",")); |
| 263 | } |
| 264 | cmd |
| 265 | } |
| 266 | |
| 267 | pub fn build(&self, package: &Package) -> Result<Output> { |
| 268 | let output = self |