Skip to main content

sim_lib

Attribute Macro sim_lib 

Source
#[sim_lib]
Expand description

Expands an inline module into a SIM library.

Parses the module’s #[sim_class], #[sim_constructor], #[sim_fn], #[sim_macro], #[sim_codec], #[sim_number_domain], #[sim_site], #[case], and #[shape] items and generates the library registration plus an __SIM_LIB_EXPANSION snapshot. Requires id and version attributes; native_export is optional. The annotated module must be inline.