Updated
On this page
Version management helpers for Zig projects, reading from a VERSION file and synchronizing the .version field in build.zig.zon on writes.
#rlsbl.targets.zig_version
#rlsbl.targets.zig_version
Version management helpers for Zig projects, reading from a VERSION file and synchronizing the .version field in build.zig.zon on writes.
#read_zon_version
python
def read_zon_version(zon_path)Extract the .version value from a build.zig.zon file.
Returns the version string, or None if the field is not found.
#read_zig_version
python
def read_zig_version(dir_path)Read the Zig project version.
Tries the VERSION file first. Falls back to extracting .version from build.zig.zon. Raises FileNotFoundError if neither source is available.
#write_zig_version
python
def write_zig_version(dir_path, version)Write the version to VERSION (atomic) and sync build.zig.zon if present.
Returns a list of relative file paths that were modified.