This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation
Standard Library

std.build

Types

Type Description
BuildTask A task in a build.

Functions

Function Description
discovered(paths: ...string) Records files the running task read, so a change to them reruns it.
env(name: string) -> std.build.engine.BuildVariable Reads an environment variable. As an in binding, a change to it reruns the task.
error(text: string) Writes the text as an error. Does not fail the task.
info(text: string) Writes the text to the build output.
verbose(text: string) Writes the text when the build runs with --verbose.
warn(text: string) Writes the text as a warning.

BuildTask

Field Description
name: string The name of the task.
mut inputs: std.build.engine.BuildInput[] The inputs the task reads.
mut outputs: std.build.engine.BuildOutput[] The outputs the task writes.
Mew is a programming language under construction.