cargo-rail 0.31.0

Cargo-native Rust workspace engine for affected CI, Rust source-surface analysis, compiler reuse, dependency coherence, exact-SHA releases, and split/sync
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Dedicated compiler-observation process for surface acquisition.

#![forbid(unsafe_code)]
#![cfg_attr(not(test), deny(clippy::unwrap_used))]
#![cfg_attr(not(test), deny(clippy::expect_used))]

fn main() {
    if std::env::args_os().len() == 2
        && std::env::args_os()
            .nth(1)
            .is_some_and(|argument| argument == cargo_rail::compiler::invocation::OBSERVATION_PROTOCOL_ARGUMENT)
    {
        println!("{}", cargo_rail::compiler::invocation::OBSERVATION_PROTOCOL_VERSION);
        return;
    }
    std::process::exit(cargo_rail::compiler::invocation::dispatch_observation_required());
}