rlsbl v0.40.1 /rlsbl.targets.zig
On this page

Zig release target using a VERSION file as the source of truth with automatic build.zig.zon synchronization and cross-compilation CI setup.

#rlsbl.targets.zig

#rlsbl.targets.zig

Zig release target using a VERSION file as the source of truth with automatic build.zig.zon synchronization and cross-compilation CI setup.

#_zig_archive_fn

python
def _zig_archive_fn(spec, name)

Return (asset_pattern, extract_cmd, binary_name) for a Zig build.

Zig produces raw binaries (not archives), so extract_cmd is always None.

#ZigTarget

Release target for Zig projects (build.zig.zon + VERSION file).

#name

python
def name(self)

#detect

python
def detect(self, dir_path)

Return True if build.zig.zon exists, or build.zig as secondary.

#read_version

python
def read_version(self, dir_path)

Read version, delegating to zig_version helpers.

#write_version

python
def write_version(self, dir_path, version)

Write version, delegating to zig_version helpers.

Returns a list of relative file paths that were modified.

#version_file

python
def version_file(self)

#template_dir

python
def template_dir(self)

#read_name

python
def read_name(self, dir_path)

Extract .name from build.zig.zon, or None.

#_read_zon_field

python
def _read_zon_field(self, dir_path, pattern)

Read a single regex-captured field from build.zig.zon.

#_is_library

python
def _is_library(self, dir_path)

Heuristic: library if build.zig doesn't contain exe( or addExecutable(.

#template_vars

python
def template_vars(self, dir_path)

Extract template variables from build.zig.zon and build.zig.

#template_mappings

python
def template_mappings(self)

#shared_template_mappings

python
def shared_template_mappings(self)

#check_project_exists

python
def check_project_exists(self, dir_path)

#get_project_init_hint

python
def get_project_init_hint(self)

#dev_install_command

python
def dev_install_command(self, project_dir)