should_run_parser

Function should_run_parser 

Source
pub fn should_run_parser(
    parser_name: &str,
    required: &HashSet<String>,
    registry: &ProtocolRegistry,
) -> bool
Expand description

Check if a specific parser should be run.

Returns true if:

  1. The parser’s output is directly needed by the query, OR
  2. The parser is on the path to a needed protocol (i.e., some required protocol depends on this one)

§Arguments

  • parser_name - Name of the parser to check
  • required - Set of protocols needed for the query
  • registry - Protocol registry containing parser definitions