Trait gear_wasm_builder::PreProcessor
source · pub trait PreProcessor {
// Required method
fn pre_process(
&self,
original: PathBuf,
) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>;
// Provided method
fn name(&self) -> &'static str { ... }
}
Expand description
Pre-processor hook for wasm generation.
Required Methods§
sourcefn pre_process(
&self,
original: PathBuf,
) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>
fn pre_process( &self, original: PathBuf, ) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>
Returns the result of the pre-processor.