Crate havocompare

Crate havocompare 

Source
Expand description

§Comparing folders and files by rules

Havocompare allows to compare folders (or to be more exact: the files inside the folders) following user definable rules. A self contained html report is generated. To use it without the CLI, the main method is: compare_folders.

Re-exports§

pub use csv::CSVCompareConfig;

Modules§

csv
comparison module for csv comparison

Structs§

ConfigurationFile
Represents a whole configuration file consisting of several comparison rules
HTMLCompareConfig
Plain text comparison config, also used for PDF
HashConfig
Configuration options for the hash comparison module
ImageCompareConfig
Image comparison config options
JsonConfig
configuration for the json compare module
Rule
Representing a single comparison rule

Enums§

ComparisonMode
Representing the comparison mode
Error
Top-Level Error class for all errors that can happen during havocompare-running

Functions§

compare_files
Use this to compare a single file against another file using a given rule
compare_folders
The main function for comparing folders. It will parse a config file in yaml format, create a report in report_path and compare the folders nominal and actual.
compare_folders_cfg
Use this function if you don’t want this crate to load and parse a config file but provide a custom rules struct yourself
get_schema
Create the jsonschema for the current configuration file format
validate_config
Try to load config yaml and check whether it is a valid one. Returns true if file can be loaded, otherwise false