Attribute Macros§
- module_
export - Indicates that a function is exported from a YARA module and therefore it’s callable from YARA rules.
- wasm_
export - The
wasm_exportmacro is used for declaring a Rust function that will be called from WASM.
Derive Macros§
- Error
Enum - The
ErrorEnummacro is used with enums that define YARA errors and warnings. - Error
Struct - The
ErrorStructderive macro generates boilerplate code for structs that define YARA errors and warnings.