Skip to content

Latest commit

 

History

History
84 lines (72 loc) · 7.25 KB

README.md

File metadata and controls

84 lines (72 loc) · 7.25 KB

MoonBuild developer guide

Start with the task you are doing. Read the linked section, then follow its source and test pointers; the documents below are not a required reading list.

Task Start here
Set up, build, or submit a change Contributing
Find the crate that owns a behavior Source map
Design module or crate interfaces Command, build, and runtime responsibilities (proposed)
Write or clean up a test Testing
Find an E2E scenario by topic E2E scenario index
Measure fixture overhead or retain a test workspace Test-directory diagnostics
Look up a Moon command as a user English manual or Chinese manual
Change MoonBuild behavior The glossary, then the relevant route below

Find the relevant behavior

Source and tests establish current behavior. References describe that behavior; designs and migrations may describe work still to do. Call out conflicts with accepted decisions or references when proposing a change.

Rupes Recta is the default build engine. Inspect legacy moonbuild paths when they own the behavior being changed or compatibility is part of the task.

When changing Start here Follow when needed
Project discovery, modules, packages, imports Modules and packages Architecture: discovery, module resolution, package resolution
Workspaces or package selection Workspace behavior Directory and environment facts
Planning, lowering, artifacts, or execution Pipeline overview Package build process, artifact dependencies, RR special cases
Build configuration scope and phase ownership Configuration selection decision Pipeline overview, conditional compilation
Compiler arguments or backend support Compiler commands Supported targets, conditional compilation, virtual packages
Compiler-proposed source fixes moon fix Prebuild outputs, Testing
Native builds, C stubs, ABI, or CRT Native ABI decision C toolchain resolution, toolchain layout
moon test, filtering, driver events, or promotion moon test execution flow Writing tests for Moon
stdout/stderr, logs, or progress Command communication vocabulary and output decision CLI lifecycle, output migration
Dry-run output Dry-run behavior CLI lifecycle
moon run process launch, stdin, signals, or cleanup moon run process lifecycle This is the CLI process layer; runtime internals use the Moonrun route below.
Moon home, global caches, or cleaning Moon home layout Cache design, artifact dependencies
Registry package execution or installed binaries moonx or moon install moonx dispatch decision, binary discovery
Prebuild tasks, bundles, or indirect dependencies Prebuild, bundle, or indirect dependencies Toolchain layout for packaging
Wasm runtime imports, Handles, async hosts, V8, or Wasmtime Async host boundary decision Moonrun developer guide

Keep each fact in one place

When editing a page, keep its purpose explicit and link to facts owned elsewhere. Remove obsolete instructions after checking their source; Git retains the old text. Keep temporary audits and proposals out of behavior references. Update this index when a page moves or its audience changes.

The repository-local moon-development skill teaches coding agents how to use this index without copying its routing table.

Decision index