Skip to main content

lean_ctx/shell/compress/
mod.rs

1mod boundaries;
2mod classification;
3#[allow(dead_code)]
4pub mod engine;
5mod footer;
6mod passthrough;
7#[cfg(test)]
8mod tests;
9#[cfg(test)]
10mod tests_engine;
11
12pub use engine::compress_if_beneficial_pub;
13pub use footer::shell_savings_footer;
14
15pub(super) use classification::is_excluded_command;
16pub(super) use engine::compress_and_measure;
17
18pub use classification::has_structural_output;
19pub use classification::is_verbatim_output;
20
21/// Size of the built-in passthrough list, for the docs drift check (#1896).
22#[cfg(test)]
23pub(crate) fn builtin_passthrough_count() -> usize {
24    passthrough::BUILTIN_PASSTHROUGH.len()
25}