Attribute Macros§
- Indicates that a function is exported from a YARA module and therefore it’s callable from YARA rules.
- The
module_main
macro is used for indicating which is the main function in a YARA module. - The
wasm_export
macro is used for declaring a Rust function that will be called from WASM.
Derive Macros§
- The
ErrorEnum
macro is used with enums that define YARA errors and warnings. - The
ErrorStruct
derive macro generates boilerplate code for structs that define YARA errors and warnings.