pub fn validate_templates(manifest_dir: &str) -> Result<()>Expand description
Validate that each template in a battery pack generates a project that compiles and passes tests.
For each template declared in the battery pack’s metadata:
- Generates a project into a temporary directory
- Runs
cargo checkto verify it compiles - Runs
cargo testto verify tests pass
Compiled artifacts are cached in <target_dir>/bp-validate/ so that
subsequent runs are faster.