1mod date;
2mod error;
3mod finding;
4mod fingerprint;
5mod json;
6mod policy;
7mod source_tree_path;
8pub use date::SimpleDate;
9pub use error::{CargoAllowError, CargoAllowResult};
10pub use finding::{
11 Finding, FindingKind, STRUCTURAL_IDENTITY_SCHEMA_ID, Span, StructuralIdentity,
12 finding_identity_key,
13};
14pub use fingerprint::{maybe_line_distance_score, normalize_snippet, stable_hash_hex};
15pub use json::json_escape;
16pub use policy::{
17 AllowConfig, AllowEntry, LastSeen, Lifecycle, MatchOutcome, MatchStatus, Requirements,
18 Selector, WorkspaceConfig,
19};
20pub use source_tree_path::{
21 allow_entry_broad_scope, glob_matches, glob_matches_str, normalize_path,
22 source_tree_path_is_ignored, source_tree_path_matches_filter, source_tree_scope_has_wildcard,
23};
24
25#[cfg(test)]
26mod tests;