Skip to main content

filter_euv_args

Function filter_euv_args 

Source
pub fn filter_euv_args(wasm_pack_args: &[String]) -> Vec<String>
Expand description

Filters out euv-specific arguments from the wasm-pack arguments.

First locates the genuine passthrough arguments by taking everything after the last -- separator (or the full list if no -- is present). Then removes all known euv-specific flags and their values so that only wasm-pack-compatible arguments remain.

§Arguments

  • &[String] - The raw wasm-pack arguments to filter.

§Returns

  • Vec<String> - The filtered arguments safe for wasm-pack.