euv_cli/command/struct.rs
1use super::*;
2
3/// Installed toolchain status for a single Rust cross-compilation target.
4#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
5pub struct TargetReadiness {
6 /// Target platform label.
7 pub(crate) name: String,
8 /// Rust compiler target triple.
9 pub(crate) triple: String,
10 /// Whether `rustup target list --installed` includes `triple`.
11 #[get(type(copy))]
12 pub(crate) installed: bool,
13}
14
15/// Complete environment readiness report produced by `euv doctor`.
16#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
17pub struct DoctorReport {
18 /// Host `rustc --version` output.
19 pub(crate) rustc_version: String,
20 /// Host `cargo --version` output.
21 pub(crate) cargo_version: String,
22 /// Installed `wasm-pack --version` output, or `"missing"`.
23 pub(crate) wasm_pack_version: String,
24 /// Detected Apple SDK path via `xcrun`, or `"missing"`.
25 pub(crate) apple_sdk_path: String,
26 /// Detected `ANDROID_NDK_HOME` path, or `"missing"`.
27 pub(crate) android_ndk_home: String,
28 /// Readiness status across all seven euv platforms.
29 pub(crate) targets: Vec<TargetReadiness>,
30}
31
32/// Result summary emitted after scaffolding a new euv project via `euv new`.
33#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
34pub struct ScaffoldReport {
35 /// Absolute or relative root path of the created project.
36 pub(crate) project_dir: String,
37 /// List of generated files.
38 pub(crate) files: Vec<String>,
39}