cargo-crap4rust 0.8.1

Cargo subcommand for computing CRAP scores across Rust crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2026 Umberto Gotti <umberto.gotti@umbertogotti.dev>
// Licensed under the MIT License
// SPDX-License-Identifier: MIT

use crate::reporting::verdict::Verdict;

#[derive(Debug, Clone, Copy, PartialEq)]
pub struct ProjectMetrics {
    pub verdict: Verdict,
    pub crappy_functions: usize,
    pub total_functions: usize,
    pub crappy_percent: f64,
}