Skip to content
beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

15.1 What is a mod

type Mod projects, artifact-driven discovery, and what mods are not.

What is a mod

A compiler mod is a type: Mod package in the dependency graph whose compiled AOT artifact exports SDK contract implementations (generators, analyzers, rewriters), not random scripts the CLI evals.

ThingMod?
Rust proc-macro inside beskid_analysisHost implementation detail
Language macro itemsLanguage macros, a parallel feature
User contract DisposableStructural type contract, different namespace
meta { } blocks in old designsRemoved, Collector owns scope

Manifest attachTo folklore is dead. During mod.load the host:

  1. Resolves transitive Mod dependencies from CompilePlan
  2. Loads AOT artifact for target triple + cache key
  3. Reads mod.descriptor.json / export table
  4. Schedules (contractId, typeId, entrySymbol) tuples

Duplicates → E1829 / E1851–E1870 before collect runs (Compiler Mod SDK: discovery).

The reference compiler host is Rust-only. Mods extend compilation; they do not replace beskid_analysis.

Mod SDK