xzip 0.4.0

ZIP CLI with explicit filename encoding for pack and unpack workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Output verbosity for pack/unpack/list.
///
/// Unpack `-v` prints throttled progress (`extracting: N/M files...`) plus a
/// final summary; `-vv` prints per-file details and forces single-threaded extraction.
#[derive(Clone, Copy, Debug, Default)]
pub struct Verbosity(pub u8);

impl Verbosity {
    pub fn is_verbose(self) -> bool {
        self.0 >= 1
    }

    pub fn is_extra(self) -> bool {
        self.0 >= 2
    }
}