(
workspace: &Workspace,
trace_cfg: &[(&Package, cfg::Trace)],
package: &Package,
binary: &Binary,
args: Vec<String>,
output: Option<String>,
firedbg_home: Option<String>,
| 648 | } |
| 649 | |
| 650 | async fn run_binary( |
| 651 | workspace: &Workspace, |
| 652 | trace_cfg: &[(&Package, cfg::Trace)], |
| 653 | package: &Package, |
| 654 | binary: &Binary, |
| 655 | args: Vec<String>, |
| 656 | output: Option<String>, |
| 657 | firedbg_home: Option<String>, |
| 658 | ) -> Result<()> { |
| 659 | let sub_command = "run"; |
| 660 | let build_cmd_output = binary.build(package).context("Fail to build binary")?; |
| 661 | if !build_cmd_output.status.success() { |
| 662 | panic!("Fail to compile binary"); |
| 663 | } |
| 664 | let executable = binary.get_binary_path(workspace); |
| 665 | let name = &binary.name; |
| 666 | run_debugger( |
| 667 | workspace, |
| 668 | trace_cfg, |
| 669 | sub_command, |
| 670 | executable, |
| 671 | name, |
| 672 | &package.name, |
| 673 | None, |
| 674 | args, |
| 675 | output, |
| 676 | firedbg_home, |
| 677 | ) |
| 678 | .await |
| 679 | } |
| 680 | |
| 681 | async fn run_test( |
| 682 | workspace: &Workspace, |
no test coverage detected