diff --git a/DESIGN.md b/DESIGN.md index 6335404eb..f4bad890c 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -1181,6 +1181,12 @@ A module never reaches the host's engine, its data loader or its layout classes; values and its settings through `FeatureSettings`. Iris's mapping from its internals to this surface, with the utilities that move into VolmLib, is in its notes (context.md, "How a module reaches the host"). +Iris's own built-ins hold to this at compile time: IrisModule is a build of its own whose compile classpath is +`com.volmit:iris-api`, VolmLib, Gson and the JDK, never `iris-host` or Iris, and its jar passes `ModuleJarCheck` +before Iris bundles it. Iris depends on IrisModule, not the reverse. What the built-ins cannot do through the API they +ask through the facades of item 3, which Iris implements; the classes that need Iris itself (the layout model, the +structure placer behind `StructureHost`, the object placers behind `ObjectHost`) are Iris's and live there. + ## Not implemented - Host wiring, which lives in Iris: JSON decoding and validation, rendering `PackSchema` into Iris's schema and diff --git a/README.md b/README.md index b75ae7004..4e8179ad2 100644 --- a/README.md +++ b/README.md @@ -440,7 +440,8 @@ Iris provides the API at runtime. At runtime a module can use the Iris API (`com packages the host exposes besides it (the built-in modules' stages and types, so packs can require their stages, and the libraries the host shares: Iris exposes VolmLib, `art.arcane.volmlib`, and Gson, `com.google.gson`), the JDK and the classes in its pack's module jars. Iris internals and the other -libraries Iris bundles are hidden. +libraries Iris bundles are hidden. Iris's own built-in modules (the IrisModule build) compile against exactly that: +`iris-api`, VolmLib and Gson, all `compileOnly`, and run `ModuleJarCheck` on their jar. A module may use any library. One the host does not expose it ships inside its own jar or as another jar of the pack, and never borrows Iris's copy. A class may appear in only one jar of a pack, so two jars that