cargo-grip4rust 0.1.3

A cargo subcommand for measuring Rust testability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2026 Umberto Gotti <umberto.gotti@umbertogotti.dev>
// Licensed under the MIT License
// SPDX-License-Identifier: MIT

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ModuleStats {
    pub path: String,
    pub grip_score: u32,
    pub pure_ratio: f64,
    pub public_items: usize,
    pub total_functions: usize,
    pub pure_functions: usize,
    pub public_ratio: f64,
}