Liking cljdoc? Tell your friends :D

clj-zig.toolchain

Resolve the zig executable (imperative shell). One seam decides which compiler every other namespace runs, in order: an explicit override, a zig on PATH, then a pinned hermetic Zig under .clj-zig/zig/<version>/. Preferring PATH means a developer who already has Zig sees no download; the pinned fallback means a fresh machine still compiles on first use.

Resolve the `zig` executable (imperative shell). One seam decides which
compiler every other namespace runs, in order: an explicit override, a
`zig` on PATH, then a pinned hermetic Zig under `.clj-zig/zig/<version>/`.
Preferring PATH means a developer who already has Zig sees no download;
the pinned fallback means a fresh machine still compiles on first use.
raw docstring

ensure-pinned!clj

(ensure-pinned!)

Install the pinned hermetic Zig on first use and return its path. Prints one line to stderr on the initial fetch and reuses the install after.

Install the pinned hermetic Zig on first use and return its path. Prints
one line to stderr on the initial fetch and reuses the install after.
sourceraw docstring

pinned-dirclj

(pinned-dir)

The directory the pinned hermetic Zig installs into.

The directory the pinned hermetic Zig installs into.
sourceraw docstring

pinned-versionclj

The Zig release the bootstrap installs and the generated wrappers assume. Part of the content hash through zig version.

The Zig release the bootstrap installs and the generated wrappers
assume. Part of the content hash through `zig version`.
sourceraw docstring

zig-execlj

(zig-exe)

The path to the zig executable to run: an explicit override, then a zig on PATH, then the pinned hermetic Zig, installing it if needed.

The path to the `zig` executable to run: an explicit override, then a
`zig` on PATH, then the pinned hermetic Zig, installing it if needed.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close