secretscan/
lib.rs

1pub mod context;
2pub mod entropy;
3pub mod output;
4pub mod patterns;
5pub mod scanner;
6
7use serde::{Deserialize, Serialize};
8use std::path::PathBuf;
9
10#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
11pub struct Finding {
12    pub file_path: PathBuf,
13    pub line_number: usize,
14    pub line_content: String,
15    pub pattern_name: String,
16    pub matched_text: String,
17    pub entropy: Option<f64>,
18}
19
20pub use context::*;
21pub use entropy::*;
22pub use output::*;
23pub use patterns::*;
24pub use scanner::Scanner;