Skip to main content

Crate micrortu_ie_representation_derive

Crate micrortu_ie_representation_derive 

Source

Macros§

export_blocks
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
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.
import_blocks
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.
params
Macros for generating parser of arguments block requires.
ports
Macros for generating parser of arguments block requires.
register_block
Register block. That macro should be called for each block to register it.

Derive Macros§

Config
Derive macro for Config trait.