@startuml
!include ../diagram-theme.iuml
start
:[V1] Select the shared VAD crate;
if (Execution host?) then (Native / VPS)
  :[V2a] cargo build\nfeature: native\ntarget: x86_64 Linux;
  :Rust library + shared library\nNative ONNX Runtime integration;
else (Browser)
  :[V2b] cargo build\nfeature: wasm\ntarget: wasm32;
  :vad.wasm;
  :[V3b] wasm-bindgen\n--target web;
  :JavaScript bindings\n+ vox_vad_core_bg.wasm;
  :[V4b] wasm-opt\noptimize the WASM module;
  :[V5b] Vite bundles the worker\npack.ts adds bindings, ORT + model;
  :dist/vw/ browser assets\n+ manifest.json;
endif
stop
@enduml
