Skip to main content

clean_dev_dirs/
lib.rs

1//! # clean-dev-dirs
2//!
3//! A fast and efficient CLI tool for recursively cleaning Rust `target/` and Node.js `node_modules/`
4//! directories to reclaim disk space.
5//!
6//! This library provides the core functionality for the clean-dev-dirs CLI tool,
7//! allowing for scanning, filtering, and cleaning development project build artifacts.
8
9pub mod cleaner;
10pub mod config;
11pub mod executables;
12pub mod filtering;
13pub mod output;
14pub mod project;
15pub mod scanner;
16pub mod utils;
17
18// Re-export commonly used types for convenience
19pub use cleaner::{CleanResult, Cleaner};
20pub use config::{
21    ExecutionOptions, FileConfig, FilterOptions, ProjectFilter, ScanOptions, SortCriteria,
22    SortOptions,
23};
24pub use filtering::filter_projects;
25pub use output::JsonOutput;
26pub use project::{BuildArtifacts, Project, ProjectType, Projects};
27pub use scanner::Scanner;
28pub use utils::parse_size;