This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 11/4/2026.
Build
import std/buildBuild Requirements Standard Library
build.kz · 9 tors · ~[comptime]
// Declare build dependency using implicit Source block
// Usage: std/build:requires { exe.linkSystemLibrary("sqlite3"); }
// [norun] annotation prevents auto-execution - collect() reads from AST instead
~[comptime|norun] pub tor requires { source: Source }
| ?added
| ?parse-error string~[comptime] pub tor variants {
meta: InvocationMeta,
source: Source,
program: std/compiler:Program
}
| configured usize
| skipped string
| invalid-event string~[comptime] pub tor config { meta: InvocationMeta, source: Source }
| configured usize
| skipped string~[comptime|norun] pub tor command.sh {
name: string,
description: string,
source: Source
}~[comptime|norun] pub tor command.zig { name: string, source: Source }~[comptime|norun] pub tor command { name: string, description: string } -> []string~[comptime|norun] pub tor step { name: string, source: Source }~[comptime] pub tor collect {
ctx: koru_compiler_types.CompilerContext,
output_path: string
} -> koru_compiler_types.CompilerContext~part app koru_std/build.app.kz
Declare app bundle identity — Usage: std/build:app { name: "Tray Spike", id: "org.koru.trayspike", version: "0.1", icon: "icon.icns" } The compiler embeds an Info.plist into __TEXT,__info_plist (macho): the binary answers a real CFBundleIdentifier/CFBundleName — the gate notifications and AppKit's real-app checks key on. `icon` is an .icns path relative to the entry file — `koruc bundle` puts it in Contents/Resources as CFBundleIconFile. A Source capture like requires — name + id required, version + icon optional; malformed blocks are parse errors, never defaulted identity.
// Declare app bundle identity — Usage:
// std/build:app { name: "Tray Spike", id: "org.koru.trayspike",
// version: "0.1", icon: "icon.icns" }
// The compiler embeds an Info.plist into __TEXT,__info_plist (macho):
// the binary answers a real CFBundleIdentifier/CFBundleName — the gate
// notifications and AppKit's real-app checks key on. `icon` is an .icns
// path relative to the entry file — `koruc bundle` puts it in
// Contents/Resources as CFBundleIconFile. A Source capture like
// requires — name + id required, version + icon optional; malformed
// blocks are parse errors, never defaulted identity.
~[comptime|norun] pub tor app { source: Source }
| ?added
| ?parse-error string