Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

15. Mods: plugins with consequences

Compiler mods—Collector, Generator, Analyzer, Rewriter—and the AOT-only host pipeline.

Mods: plugins with consequences

Mods are plugins with consequences: they mutate the compile graph, re-parse generated AST, and can fail closed with E18xx diagnostics before your app code runs. The compiler itself stays Rust; your extension is Beskid type: Mod plus AOT artifacts.

Normative Beskid surface: Compiler Mod SDK. Host law: Compiler mods and Mod host bridge.

SectionTopic
What is a modProject kind, discovery, boundaries.
Mod SDKContracts, Syntax mirror, query DSL.
Generator, Analyzer, RewriterRoles and ordering.
beskid mod CLIBuild and wire mod packages.
Pipeline phasescollect → generate → analyze → rewrite.

What is a mod

Return to book reference for CLI details, or read Implementation map when filing spec+crate changes.