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§
- Configuration
File - Represents a whole configuration file consisting of several comparison rules
- HTML
Compare Config - Plain text comparison config, also used for PDF
- Hash
Config - Configuration options for the hash comparison module
- Image
Compare Config - Image comparison config options
- Json
Config - configuration for the json compare module
- Rule
- Representing a single comparison rule
Enums§
- Comparison
Mode - 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