diff --git a/src/main.rs b/src/main.rs index a5ceedd..addc5e9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,9 +20,10 @@ use std::path::{Path, PathBuf}; use clap::Clap; use log::{debug, info, trace, warn}; use once_cell::sync::OnceCell; -use rayon::prelude::*; use smartstring::alias::String; use walkdir::{DirEntry, WalkDir}; +#[cfg(feature = "multi-threaded")] + use rayon::prelude::*; use crate::findings::Findings; use crate::formats::{Format, Script}; @@ -144,7 +145,7 @@ fn scan_from_walkdir(entries: Vec) -> Vec