Attribute Macro script_bindings

Source
#[script_bindings]
Expand description

Derive macro for generating script bindings from an impl block.

Generates a registration function with visibility determined by the highest visibility in the impl block.

Does not support generics.

Arguments:

  • name: the name to use to suffix the generated function, i.e. test_fn will generate register_test_fn. Defaults to functions`
  • remote: If true the original impl block will be ignored, and only the function registrations will be generated
  • bms_core_path: If set the path to override bms imports, normally only used internally
  • unregistered: If set, will use new_unregistered instead of new for the namespace builder
  • core: If set, marks the type as core using the MarkAsCore type data
  • significant: If set, marks the type as significant using the MarkAsSignificant type data

It is encouraged to place significant markers on your own types, for the purposes of documentation generation.