Export the blocks of a library crate.
Performs the same collection and validation as finalize! and exports one
hidden replay macro per block, so a final crate can register them with
import_blocks!. Emits no symbols, so it is the right closing macro for
library crates. Optionally takes the complete block list, like finalize!.
Finalize the build process.
That macro must be called after all block registrations in the same crate
to embed metadata into the binary. It creates a link section “metadata”
with json data of all registered blocks, an exported symbol
COLLECTED_STRINGS with all port and param names, and the
PORTS_*/PARAMS_* binding definition statics, whose name_offset and
name_len reference COLLECTED_STRINGS.
Register blocks exported by other crates.
Each path names the exporting crate and the block. The block’s metadata is
replayed into this crate’s registry, so finalize! covers it; the block’s
code and wasm symbols come from the exporting crate.