1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! voom — fast, safe, parallel build-artifact pruning.
//!
//! The library half of the `voom` binary. Everything testable lives here; `main.rs` is a
//! thin shell that parses arguments, dispatches, and maps errors to exit codes.
//!
//! The pipeline is `scan -> classify -> policy -> delete -> report`; see
//! `adrs/0001-mission-and-scope.md` for scope and the ADRs it references for each stage.
//!
//! Two invariants carry the whole design and are covered by regression tests:
//!
//! - The directory walker runs with **all** ignore handling disabled — build artifacts are
//! precisely what `.gitignore` lists (`adrs/0005-traversal-and-parallelism.md`).
//! - Nothing is deleted without a marker file proving its ecosystem
//! (`adrs/0002-marker-anchored-classification.md`).
/// The version of the `voom` crate, as published.
pub const VERSION: &str = env!;
// The integration suites cannot see a `#[cfg(test)]` module of the library they link
// against, and two copies of a fixture helper drift — a snapshot that handled symlinks or
// separators differently in one suite would have it trusting output the other could not
// produce. The `test-support` feature exposes the one copy; `cargo test` turns it on through
// the self dev-dependency.