Skip to main content

export

Attribute Macro export 

Source
#[export]
Expand description

Emits the plugin lifecycle symbols:

  • cfmp_interface_version → returns 0 (current plugin contract).
  • cfmp_initialize / cfmp_finalize → no-op success.
  • cfmp_query_interfaces → packed name\0version\0 byte stream enumerating the interfaces registered by #[plugin_interface] in this crate.
  • cfmp_metadata → present only when #[plugin_metadata] is used on the same item.

Place it on any item in the crate root of your plugin’s cdylib:

#[export]
struct Plugin;