use super::*;
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct EuvAppConfig {
pub(crate) name: Option<String>,
pub(crate) version: Option<String>,
pub(crate) bundle_id: Option<String>,
pub(crate) package: Option<String>,
pub(crate) icon: Option<PathBuf>,
pub(crate) default_targets: Vec<String>,
pub(crate) render: Option<String>,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct EuvBuildConfig {
pub(crate) out_dir: Option<PathBuf>,
pub(crate) base: Option<String>,
#[get(type(copy))]
pub(crate) raw_wasm: bool,
#[get(type(copy))]
pub(crate) skip_wasm_opt: bool,
#[get(type(copy))]
pub(crate) include_cli: bool,
#[get(type(copy))]
pub(crate) parallel: bool,
#[get(type(copy))]
pub(crate) android_api_level: Option<u32>,
pub(crate) android_build_tools: Option<String>,
pub(crate) ios_team_id: Option<String>,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct EuvOtaConfig {
pub(crate) project: Option<String>,
pub(crate) channel: Option<String>,
pub(crate) store: Option<PathBuf>,
pub(crate) server_url: Option<String>,
pub(crate) proxy_base: Option<String>,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct EuvDocsConfig {
pub(crate) src: Option<PathBuf>,
pub(crate) out: Option<PathBuf>,
pub(crate) title: Option<String>,
pub(crate) base: Option<String>,
#[get(type(copy))]
pub(crate) wasm: bool,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct EuvProjectConfig {
pub(crate) app: EuvAppConfig,
pub(crate) build: EuvBuildConfig,
pub(crate) ota: EuvOtaConfig,
pub(crate) docs: EuvDocsConfig,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct LoadedEuvConfig {
pub(crate) config_path: PathBuf,
pub(crate) project_root: PathBuf,
pub(crate) config: EuvProjectConfig,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct WorkspacePackageInfo {
pub(crate) name: String,
pub(crate) lib_name: String,
pub(crate) version: String,
pub(crate) manifest_path: PathBuf,
pub(crate) crate_dir: PathBuf,
#[get(type(copy))]
pub(crate) has_cdylib: bool,
#[get(type(copy))]
pub(crate) has_bin: bool,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct WorkspaceMetadata {
pub(crate) workspace_root: PathBuf,
pub(crate) manifest_path: PathBuf,
pub(crate) version: String,
#[get(type(copy))]
pub(crate) version_code: u32,
pub(crate) packages: Vec<WorkspacePackageInfo>,
pub(crate) wasm_bindgen_version: Option<String>,
}