use super::*;
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct WebPackageMetadata {
pub(crate) package_name: String,
pub(crate) lib_name: String,
pub(crate) version: String,
pub(crate) target_dir: PathBuf,
pub(crate) wasm_bindgen_version: Option<String>,
pub(crate) theme_features: Vec<String>,
}
#[derive(Clone, Data, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct WebBuildConfig {
pub(crate) repo_root: PathBuf,
pub(crate) package: String,
pub(crate) out_dir: PathBuf,
pub(crate) base_url: String,
pub(crate) title: String,
pub(crate) version: Option<String>,
pub(crate) icon_path: Option<PathBuf>,
pub(crate) archive_path: Option<PathBuf>,
pub(crate) features: Vec<String>,
#[get(type(copy))]
pub(crate) no_default_features: bool,
#[get(type(copy))]
pub(crate) release: bool,
#[get(type(copy))]
pub(crate) skip_wasm_opt: bool,
#[get(type(copy))]
pub(crate) raw_wasm: bool,
#[get(type(copy))]
pub(crate) verify: bool,
#[get(type(copy))]
pub(crate) theme_variants: bool,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct WebBuildReport {
pub(crate) package: String,
pub(crate) version: String,
pub(crate) out_dir: PathBuf,
pub(crate) base_url: String,
pub(crate) wasm_file: String,
#[get(type(copy))]
pub(crate) wasm_bytes: u64,
#[get(type(copy))]
pub(crate) wasm_opt_applied: bool,
#[get(type(copy))]
pub(crate) raw_wasm: bool,
#[get(type(copy))]
pub(crate) file_count: usize,
#[get(type(copy))]
pub(crate) elapsed_ms: u64,
pub(crate) manifest_path: Option<PathBuf>,
pub(crate) archive_path: Option<PathBuf>,
}
#[derive(Clone, Data, Debug, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct ThemeVariantBuildReport {
pub(crate) out_dir: PathBuf,
pub(crate) version: String,
pub(crate) built_variants: Vec<String>,
pub(crate) cached_variants: Vec<String>,
#[get(type(copy))]
pub(crate) elapsed_ms: u64,
}