Skip to main content

security_rust/
lib.rs

1// Copyright (c) 2026 erik <erik@erik.xyz> — https://erik.xyz
2
3pub mod data;
4pub mod file;
5pub mod injection;
6pub mod protocol;
7pub mod result;
8pub mod scanner;
9
10pub use result::{AttackCategory, DetectionResult, Severity};
11pub use scanner::{Scanner, ScannerBuilder};
12
13pub trait Detector: Send + Sync {
14    fn name(&self) -> &'static str;
15    fn detect(&self, input: &str) -> Option<DetectionResult>;
16}