cargo-kit 0.1.10

Cargo subcommand to apply performance, compile-time, or size-optimized profiles and configs to your Rust project for enhanced build efficiency.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub struct CliConfig {
    use_colors: bool,
}

impl CliConfig {
    pub fn new(use_colors: bool) -> Self {
        Self { use_colors }
    }

    pub fn colors_enabled(&self) -> bool {
        self.use_colors
    }
}