Closed coalooball closed 3 months ago
You must use Rules::deserialize_from, for instance:
let file = File::open(rules_path)?;
let rules = Rules::deserialize_from(file)?;
You must use Rules::deserialize_from, for instance:
let file = File::open(rules_path)?; let rules = Rules::deserialize_from(file)?;
Thank you very much. I previously thought it was a similar interface to yr_rules_load
, so I couldn't find it.
After using the command:
how can I use the API in
yara_x
to loadsome_files.yarc
and match content? I've looked through the interfaces ofrust yara_x::Compiler
andrust yara_x::Rules
but haven't found a function to achieve this. I would greatly appreciate it if you could guide me on how to write the code for this. Thank you very much!