fix: make conditional fields optional using @hasField

Templates can now use 'if error' or similar conditionals without
requiring the caller to always provide those fields in the data struct.
This commit is contained in:
2026-01-23 12:10:48 +05:30
parent 4f1dcf3640
commit 53f147f5c4
3 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
.{
.name = .pugz,
.version = "0.1.10",
.version = "0.1.11",
.fingerprint = 0x822db0790e17621d, // Changing this has security and trust implications.
.minimum_zig_version = "0.15.2",
.dependencies = .{},