15.4 beskid mod CLI
Build Mod projects, produce AOT artifacts, and wire them into consumer compiles.
beskid mod CLI
Mods ship like other Beskid packages—manifest, graph, lockfile—but consumers only load them if AOT output exists for the active target.
Workflow sketch
Section titled “Workflow sketch”- Create or open a
type: Modproject (Project manifest). - Implement public types satisfying SDK contracts (
Collector,Generator, …). beskid buildthe mod for the target triple you need in downstream compiles.- Add the mod package to app/lib dependencies; host discovers exports at
mod.load.
CLI details evolve—cross-check CLI command reference and build for flags your workspace supports.
Artifacts
Section titled “Artifacts”Normative contract: AOT artifact contract.
Expect:
- Native object for the triple
mod.descriptor.json(or equivalent export table) listing contract entrypoints
Missing artifact for the requested triple → fail closed, not “skip mod silently.”
Testing mods
Section titled “Testing mods”- Unit-test Beskid logic in
testitems where possible. - Platform behavior locks live in
beskid_testswith spec updates (Conformance).