Context
In src/config/schema.rs (line 29):
pub min_diecut_version: Option<String>,
This field is parsed from diecut.toml but never checked during template resolution. If a template specifies a minimum version that the current binary doesn't satisfy, it will silently proceed, potentially producing incorrect output.
Suggestion
Either:
- Enforce the check during
validate() or plan_generation by comparing against the crate version (env!("CARGO_PKG_VERSION"))
- Remove the field if it's not going to be enforced, to avoid misleading template authors
Context
In
src/config/schema.rs(line 29):This field is parsed from
diecut.tomlbut never checked during template resolution. If a template specifies a minimum version that the current binary doesn't satisfy, it will silently proceed, potentially producing incorrect output.Suggestion
Either:
validate()orplan_generationby comparing against the crate version (env!("CARGO_PKG_VERSION"))