()
| 509 | cargo_rule_written = False |
| 510 | |
| 511 | def write_cargo_rule(): |
| 512 | nonlocal cargo_rule_written |
| 513 | if not cargo_rule_written: |
| 514 | n.pool("cargo", 1) |
| 515 | n.rule( |
| 516 | name="cargo", |
| 517 | command="cargo build --release --manifest-path $in --bin $bin --target-dir $target", |
| 518 | description="CARGO $bin", |
| 519 | pool="cargo", |
| 520 | depfile=Path("$target") / "release" / "$bin.d", |
| 521 | deps="gcc", |
| 522 | ) |
| 523 | cargo_rule_written = True |
| 524 | |
| 525 | if config.dtk_path is not None and config.dtk_path.is_file(): |
| 526 | dtk = config.dtk_path |
no test coverage detected