Skip to main content

quichash_core/
lib.rs

1#![doc = include_str!("../README.md")]
2#![deny(missing_docs)]
3#![deny(rustdoc::broken_intra_doc_links)]
4#![deny(unsafe_code)]
5
6// Legacy engines historically rendered their own status. Keep their public
7// compatibility methods quiet when embedded; the CLI owns presentation now.
8macro_rules! println {
9    () => {{}};
10    ($($argument:tt)*) => {{ let _ = format_args!($($argument)*); }};
11}
12macro_rules! eprintln {
13    () => {{}};
14    ($($argument:tt)*) => {{ let _ = format_args!($($argument)*); }};
15}
16
17pub mod analyze;
18pub mod benchmark;
19pub mod compare;
20pub mod database;
21#[cfg(feature = "filesystem")]
22pub mod dedup;
23pub mod error;
24pub mod hash;
25#[cfg(feature = "filesystem")]
26pub mod ignore_handler;
27pub mod manifest;
28pub mod operation;
29pub mod path_utils;
30#[cfg(feature = "filesystem")]
31pub mod scan;
32#[cfg(feature = "filesystem")]
33pub mod verify;
34#[cfg(feature = "filesystem")]
35pub mod wildcard;
36
37pub use error::HashUtilityError;
38pub use hash::{
39    Algorithm, AlgorithmInfo, DigestValue, HashComputer, HashMode, HashRegistry, HashResult,
40    Hasher, HasherSet, hash_bytes, hash_file, hash_file_mode, hash_reader, hash_reader_observed,
41};
42#[cfg(feature = "filesystem")]
43pub use manifest::{
44    DigestMismatch, ManifestVerifyReport, OperationIssue, ScanOptions, ScanReport, scan_folder,
45    verify_folder,
46};
47pub use manifest::{FolderDigest, Manifest, ManifestEntry};
48pub use operation::{FailurePolicy, NoopObserver, OperationObserver, ProgressEvent, ProgressPhase};