Barnacle.Zig (zig_barnacle v0.1.0)

Copy Markdown View Source

Locates a zig executable or optionally downloads a standalone Zig toolchain into the project-local .barnacle/ directory (never into $HOME).

Summary

Functions

Downloads and extracts a standalone Zig toolchain into .barnacle/ in the current project.

Resolves the zig executable path in order

Functions

install_local!(version \\ "0.17.1")

@spec install_local!(String.t()) :: String.t()

Downloads and extracts a standalone Zig toolchain into .barnacle/ in the current project.

resolve!(opts \\ [])

@spec resolve!(keyword()) :: String.t()

Resolves the zig executable path in order:

  1. Explicit opts[:zig]
  2. ZIG_EXECUTABLE_PATH environment variable
  3. System zig on PATH
  4. Project-local .barnacle/zig-*/zig(.exe)
  5. Prompts to download standalone Zig into .barnacle/