gear_wasm_builder

Trait 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§

Source

fn pre_process( &self, original: PathBuf, ) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>

Returns the result of the pre-processor.

Provided Methods§

Source

fn name(&self) -> &'static str

Returns the name of the pre-processor. It must be some unique string.

Implementors§