Skip to main content

euv_cli/builder/web/
impl.rs

1use super::*;
2
3/// Default configuration matching `scripts/build/build-web.sh` (`euv-example`, `dist/web`, `./`, release).
4impl Default for WebBuildConfig {
5    /// Constructs a release zero-JS WebAssembly build configuration for `euv-example`.
6    ///
7    /// # Returns
8    ///
9    /// - `Self` - Default `WebBuildConfig`.
10    fn default() -> Self {
11        Self {
12            repo_root: PathBuf::from("."),
13            package: WEB_DEFAULT_PACKAGE.to_string(),
14            out_dir: PathBuf::from(WEB_DEFAULT_OUT_DIR),
15            base_url: WEB_DEFAULT_ASSET_BASE.to_string(),
16            title: WEB_DEFAULT_TITLE.to_string(),
17            version: None,
18            icon_path: None,
19            archive_path: None,
20            features: Vec::new(),
21            no_default_features: false,
22            release: true,
23            skip_wasm_opt: false,
24            raw_wasm: false,
25            verify: true,
26            theme_variants: false,
27        }
28    }
29}