This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 10/5/2026.

Compiler.directives

~import std/compiler.directives

Koru Standard Library: the `directives` part of compiler.kz — frontend-read

compiler.directives.kz · 2 tors

Koru Standard Library: the `directives` part of compiler.kz — frontend-read compiler directives. Joined via `~part directives` in compiler.kz; merged into the compiler module at load. These tors are never dispatched: [norun] prevents auto-execution and the FRONTEND reads the invocation from the AST — discovered by parsing, not hardcoded. `requires` declares backend build requirements (build.zig generation is metacircular this way); `use` pins the backend itself to a minted compiler — it is consumed and stripped before backend emission, so the mint name never reaches the closure it selects.

requires

comptimenorun koru_std/compiler.directives.kz:11