Skip to main content

plugin_metadata

Attribute Macro plugin_metadata 

Source
#[plugin_metadata]
Expand description

Attribute used together with export to attach static registry metadata to the plugin. The strings are leaked at plugin load time and exposed through the generated cfmp_metadata symbol.

Example:

#[plugin_metadata(
    name = "mock-hash",
    version = "0.1.0",
    vendor = "confium",
    license = "BSD-2-Clause",
)]
#[export]
struct Plugin;