euv-cli 0.50.0

Cross-platform CLI tool for the euv native UI framework supporting run, build, check, fmt, doctor, new, and Hyperlane SSE dynamic updates across all supported platforms.
Documentation
use super::*;

/// Readiness report for one external CLI tool or SDK environment variable.
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct ToolProbeEntry {
    /// Executable or SDK environment variable name.
    pub(crate) name: String,
    /// Logical toolchain category (`rust`, `web`, `android`, `apple`, `harmony`, `dx`).
    pub(crate) category: String,
    /// Whether the tool or SDK was detected on this host.
    #[get(type(copy))]
    pub(crate) available: bool,
    /// Detected version string, SDK path, or `"missing"`.
    pub(crate) detail: String,
    /// Targets or workflows requiring this tool.
    pub(crate) required_for: String,
    /// Actionable install command or setup hint when missing.
    pub(crate) install_hint: String,
}

/// Outcome of one automated `rustup target add` action executed by `euv doctor --fix`.
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct DoctorFixResult {
    /// Rust target triple targeted for installation.
    pub(crate) triple: String,
    /// Full command string executed.
    pub(crate) command: String,
    /// Whether `rustup target add` exited successfully.
    #[get(type(copy))]
    pub(crate) succeeded: bool,
    /// Status message or stderr summary.
    pub(crate) message: String,
}

/// Comprehensive environment and 38-target readiness report produced by the upgraded `euv doctor`.
#[derive(Clone, Data, Debug, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct FullDoctorReport {
    /// Host operating system (`macos`, `linux`, `windows`).
    pub(crate) host_os: String,
    /// Host CPU architecture (`aarch64`, `x86_64`, etc.).
    pub(crate) host_arch: String,
    /// Probed Rust, Web, Android, Apple, HarmonyOS, and DX tool inventory.
    pub(crate) tools: Vec<ToolProbeEntry>,
    /// Per-target readiness across all 38 concrete euv targets.
    pub(crate) targets: Vec<TargetCapability>,
    /// Count of concrete targets immediately buildable on this host.
    #[get(type(copy))]
    pub(crate) ready_target_count: usize,
    /// Total concrete targets audited (`38`).
    #[get(type(copy))]
    pub(crate) total_target_count: usize,
    /// Results of any `--fix` `rustup target add` actions performed.
    #[new(skip)]
    pub(crate) fix_actions: Vec<DoctorFixResult>,
}