This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.
Build
~import std/buildBuild Requirements Standard Library
build.kz · 8 tors · ~[comptime]
Build Requirements Standard Library
Allows modules to declare their build dependencies
TOP-LEVEL COMPTIME EXECUTION:
This module uses top-level comptime calls for automatic collection.
When imported, the top-level collect() executes automatically.
// 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: 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
} -> [][]const u8~[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