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, …). - Run
beskid mod rebuildfor the target triple that downstream compiles need. - Add the mod package to app/lib dependencies; host discovers exports at
mod.load.
See the beskid mod command reference for project, target, lockfile, clean, and progress flags.
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 focused
beskid_tests_*crates with spec updates (Conformance).