Skip to main content

Module rules

Module rules 

Source
Expand description

规则引擎核心定义与宏构建系统。

该模块定义了扫描规则的底层结构(如 RawRule、Assertion), 并利用 inventory 库实现了规则的分布式注册。 模块内提供的 lazy_rule! 宏是定义扫描规则的核心工具。

Modules§

b64file
coding
core
hexfile

Macros§

lazy_rule
核心规则定义宏。

Structs§

Assertion
上下文断言 (Lookaround Assertion)。
RawRule
原始规则定义。
RuleEntry
用于 inventory 收集的规则注册表项。

Enums§

Find
匹配查找器。

Statics§

ALL_RULES
全局预编译的所有规则实例。 利用 LazyLock 在首次访问时加载并编译 inventory 收集到的规则。

Functions§

get_rules
获取被编译和组装好的可执行规则集合 (AnyRule)。