Zorb.Capsule (Zorb v0.13.0)

Copy Markdown View Source

The "Baking Factory" for Z-machine Game Capsules.

Summary

Functions

Returns the cache file path for the given story data.

Compiles a story file into a WASM capsule.

Returns the compiler version of the Zorb Baking Factory.

Functions

cache_path(story_data)

Returns the cache file path for the given story data.

Exposed so tooling (benchmarks, diagnostics) inspects the same location compile/2 reads and writes.

compile(story_path, opts \\ [])

Compiles a story file into a WASM capsule.

Options

  • :cache - Boolean, whether to cache the result. Defaults to false.
  • :method - Compilation method: :patcher (fast, default) or :traditional (slow, for debugging)

compiler_version()

Returns the compiler version of the Zorb Baking Factory.