cargo-governor 2.0.0

Machine-First, LLM-Ready, CI/CD-Native release automation tool for Rust crates
Documentation
//! Downstream impact simulation for simulation service

use governor_core::domain::version::SemanticVersion;
use serde_json::json;

/// Simulate downstream crate impact
pub fn simulate_downstream_impact(
    count: usize,
    version: &SemanticVersion,
) -> Vec<serde_json::Value> {
    (0..count)
        .map(|i| {
            json!({
                "crate": format!("downstream-crate-{}", i + 1),
                "current_requirement": format!("{}.{{}}", version.major().saturating_sub(1)),
                "updated_requirement": format!("^{}", version),
                "breaking": version.major() > 0,
                "action_needed": version.major() > 0,
            })
        })
        .collect()
}