euv-cli 0.51.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::*;

/// Configuration for building an iOS, iPadOS, or watchOS `.app` bundle in pure Rust.
#[derive(Clone, Data, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct AppleBuildConfig {
    /// Root directory of the `euv` workspace containing `Cargo.toml` and `example/`.
    pub(crate) workspace_root: PathBuf,
    /// Selected Apple target kind (`IosSim`, `IpadSim`, `IosDevice`, `IpadDevice`, `WatchOsSim`, `WatchOsDevice`).
    #[get(type(copy))]
    pub(crate) target_kind: AppleTargetKind,
    /// Default render pipeline mode configured in `host_config.rs`.
    #[get(type(copy))]
    pub(crate) render_mode: RenderArg,
    /// Optional explicit semantic version overriding workspace `Cargo.toml`.
    pub(crate) app_version: Option<String>,
    /// Optional explicit numeric `CFBundleVersion` build number.
    #[get(type(copy))]
    pub(crate) build_number: Option<u32>,
    /// Optional explicit `CFBundleIdentifier` overriding target defaults.
    pub(crate) bundle_id: Option<String>,
    /// Optional output directory containing the `.app` bundle (default `dist/ios` or `dist/wearable/watchos`).
    pub(crate) out_dir: Option<PathBuf>,
    /// Optional staging directory for the generated Rust staticlib crate and ObjC/Swift sources.
    pub(crate) build_dir: Option<PathBuf>,
    /// Optional `.tar.gz` archive path created from the signed `.app` bundle.
    pub(crate) archive_path: Option<PathBuf>,
    /// Optional codesign identity (defaults to `"-"` for ad-hoc signing).
    pub(crate) codesign_identity: Option<String>,
    /// Optional explicit iOS/iPadOS Simulator UDID overriding `EUV_IOS_SIM_UDID` auto-detection.
    pub(crate) sim_udid: Option<String>,
    /// Whether to build in release profile with AI-schema stripping verification.
    #[get(type(copy))]
    pub(crate) release: bool,
    /// When `true` (or when `EUV_IOS_SKIP_LAUNCH=1`), skips Simulator boot/install/launch.
    #[get(type(copy))]
    pub(crate) no_launch: bool,
    /// When `true`, generates host sources, `Info.plist`, and icons without invoking Xcode tools.
    #[get(type(copy))]
    pub(crate) shell_only: bool,
}

/// Machine-readable report produced after generating or building an Apple `.app` bundle.
#[derive(Clone, Debug, Deserialize, Eq, Getter, PartialEq, Serialize)]
pub struct AppleBuildReport {
    /// Canonical target label (`ios-sim`, `ipad-sim`, `ios`, `ipad`, `watchos-sim`, `watchos`).
    pub(crate) target_kind: String,
    /// Rust target triple used to compile the static library.
    pub(crate) rust_triple: String,
    /// Resolved semantic version written into `Info.plist` and host `Cargo.toml`.
    pub(crate) version: String,
    /// Resolved `CFBundleVersion` build number string.
    pub(crate) build_number: String,
    /// Host project staging directory path.
    pub(crate) build_dir: PathBuf,
    /// Generated or compiled `.app` bundle directory path.
    pub(crate) app_bundle_path: PathBuf,
    /// Optional archived `.tar.gz` bundle path when archiving was requested.
    pub(crate) archive_path: Option<PathBuf>,
    /// Compiled executable binary size in bytes (`0` when `shell_only` is `true`).
    #[get(type(copy))]
    pub(crate) binary_bytes: u64,
    /// Whether the release binary passed the zero AI-schema marker check.
    #[get(type(copy))]
    pub(crate) ai_schema_clean: bool,
    /// Whether the bundle was installed and launched in a Simulator.
    #[get(type(copy))]
    pub(crate) launched: bool,
}