cargo-crap4rust 0.2.0

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

use std::process::ExitCode;

fn main() -> ExitCode {
    match crap4rust::run() {
        Ok(code) => code,
        Err(error) => {
            eprintln!("error: {error:#}");
            ExitCode::from(2)
        }
    }
}