cargo-twin4rust 0.5.0

Cargo subcommand that fails the build when a Rust source file has no mirrored test file beside it
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 anyhow::Result;
use clap::Parser;
use std::env::args;
use twin4rust::args::Args;
use twin4rust::runner::Runner;

// Reading the real process argv is the one thing no test can reach, so it is
// all this binary does. The fixup it feeds is public and tested.
fn main() -> Result<()> {
    let forwarded = Args::without_cargo_subcommand(args());
    Runner::run(Args::parse_from(forwarded))
}