()
| 453 | cargo_rule_written = False |
| 454 | |
| 455 | def write_cargo_rule(): |
| 456 | nonlocal cargo_rule_written |
| 457 | if not cargo_rule_written: |
| 458 | n.pool("cargo", 1) |
| 459 | n.rule( |
| 460 | name="cargo", |
| 461 | command="cargo build --release --manifest-path $in --bin $bin --target-dir $target", |
| 462 | description="CARGO $bin", |
| 463 | pool="cargo", |
| 464 | depfile=Path("$target") / "release" / "$bin.d", |
| 465 | deps="gcc", |
| 466 | ) |
| 467 | cargo_rule_written = True |
| 468 | |
| 469 | if config.dtk_path is not None and config.dtk_path.is_file(): |
| 470 | dtk = config.dtk_path |
no test coverage detected