Expand description
A code formatter for YARA rules
This crate implements a code format for YARA in the spirit of other tools like
rustfmt
and gofmt
.
§Usage
use yara_x_fmt::Formatter;
let input = File::open("original.yar").unwrap();
let output = File::create("formatted.yar").unwrap();
Formatter::new().format(input, output).unwrap();
Structs§
- Formatter
- Formats YARA source code automatically.
Enums§
- Error
- Errors returned by
Formatter::format
.