@imp/rules/c/zig
Module: @imp/rules/c/zig.
ZIG
Documentation is not yet available for this implementation export.
Source: rules/c/zig/index.luau:39.
artifact_name(version, plat)
The Zig release archive filename for a version and platform.
Source: rules/c/zig/index.luau:79.
cache_key(version, plat)
The named-cache key for a Zig version and platform.
Source: rules/c/zig/index.luau:103.
default_graph_toolchain()
The Zig provider of the default version, or nil when no default is declared.
Source: rules/c/zig/index.luau:405.
default_version
Documentation is not yet available for this implementation export.
Source: rules/c/zig/index.luau:493.
download_url(version, plat)
The Zig release download URL for a version and platform.
Source: rules/c/zig/index.luau:89.
graph_build_cache_tool(version)
The tool handle of the prewarmed Zig build cache of a version. Give
graph_cache_env() to the actions that run Zig.
Source: rules/c/zig/index.luau:250.
graph_cache_env()
The environment that points Zig at the build cache. The action must have
the build_cache_tool of graph_toolchain() in its task inputs. Imp
mounts a tool at .imp/tools/<name>.
Source: rules/c/zig/index.luau:303.
graph_tool(version)
The tool handle of the managed Zig of a version, or of the default.
Source: rules/c/zig/index.luau:229.
graph_toolchain(version)
The Zig provider of the shared C toolchain contract, with tool,
build_cache_tool, and version. CMake does not support a Zig
toolchain yet: cmake_configure fails, and resolves_tool_name is false.
Source: rules/c/zig/index.luau:373.
is_zig_toolchain(toolchain_value)
True when toolchain is a Zig provider.
Source: rules/c/zig/index.luau:411.
reset_for_test()
Forget each declared version and the default. Tests call this, because the module declares a default when it loads.
Source: rules/c/zig/index.luau:457.
resolve_version
Documentation is not yet available for this implementation export.
Source: rules/c/zig/index.luau:501.
supported_platforms()
The platforms that this module gets Zig release archives for.
Source: rules/c/zig/index.luau:94.
zig_toolchain(version, options)
Declare a Zig toolchain version.
Options: default Make this version the default. unverified Download without a lockfile entry, with a warning. lockfile Address of a lockfile to use instead of the shipped one, for example "@workspace/locks/zig.lock".
Returns { version, lockfile, [GEN_LOCKFILES] }. Export the value from a
BUILD module to make its lockfile root selectable by
imp goal gen-lockfiles.
Source: rules/c/zig/index.luau:426.