Skip to main content
MODULE.aspect at your repo root declares external AXL module dependencies — analogous to MODULE.bazel for Bazel deps. Once declared, modules are loadable in any .axl file in the repo.

Declaring a dependency

Use axl_archive_dep to pull in a module from an archive URL:
MODULE.aspect
Parameters:

Loading from a module

After declaring a dependency, use load() to import specific symbols:
.aspect/config.axl
load() path forms:
  • "@module_name//path/to/file.axl" — file inside a declared external module
  • "@aspect//traits.axl" — built-in Aspect library (always available, no declaration needed)
  • "./relative.axl" — relative to the current file
  • "path/from/repo/root.axl" — absolute from the workspace root (no leading ./)

Built-in @aspect library

The @aspect module is always available without a MODULE.aspect declaration. It exports the built-in traits, features, and utilities used throughout the config examples in these docs: