Skip to main content

package_web_bundle_directory

Function package_web_bundle_directory 

Source
pub fn package_web_bundle_directory(
    out_dir: &Path,
    title: &str,
    asset_base: &str,
    version: &str,
    custom_icon: Option<&Path>,
    verify_release: bool,
) -> Result<ReleaseAssetManifest>
Expand description

Packages a wasm-bindgen output directory into a verified zero-JS bundle (index.html, 404.html, .nojekyll, icons, euv-release.json).

§Arguments

  • &Path - Output directory containing <lib>_bg.wasm and <lib>.js.
  • &str - HTML page title.
  • &str - Asset URL base prefix ("./" default).
  • &str - Numeric semantic version string written to euv-release.json.
  • Option<&Path> - Optional custom PNG icon path override.
  • bool - When true, enforces all release invariants (0 .js, 0 AI-schema leaks, preload/404/SHA-256 verification).

§Returns

  • io::Result<ReleaseAssetManifest> - Written (and optionally verified) euv-release.json manifest.