pub fn compile(wasm: &[u8], strategy: Strategy) {
    let mut config = Config::new();
    config.strategy(strategy).unwrap();
    let engine = Engine::new(&config);
    let store = Store::new(&engine);
    let _ = Module::new(&store, wasm);
}
/// Compile the Wasm buffer, and implicitly fail if we have an unexpected
/// panic or segfault or anything else that can be detected "passively".
///
/// Performs initial validation, and returns early if the Wasm is invalid.
///
/// You can control which compiler is used via passing a `Strategy`.
Compile the Wasm buffer, and implicitly fail if we have an unexpected
panic or segfault or anything else that can be detected "passively".

Performs initial validation, and returns early if the Wasm is invalid.

You can control which compiler is used via passing a `Strategy`.
Compile the Wasm buffer and implicitly fail if we have an unexpected panic or segfault or anything else that can be detected " passively " . Performs initial validation and returns early if the Wasm is invalid . You can control which compiler is used via passing a ` Strategy ` .
pub fn compile(wasm: &[u8], strategy: Strategy) {
    let mut config = Config::new();
    config.strategy(strategy).unwrap();
    let engine = Engine::new(&config);
    let store = Store::new(&engine);
    let _ = Module::new(&store, wasm);
}
pub fn compile ( wasm : & [ u8 ] , strategy : Strategy ) { let mut config = Config :: new ( ) ; config . strategy ( strategy ) . unwrap ( ) ; let engine = Engine :: new ( & config ) ; let store = Store :: new ( & engine ) ; let _ = Module :: new ( & store , wasm ) ; }
Compile the Wasm buffer, and implicitly fail if we have an unexpected
panic or segfault or anything else that can be detected "passively".
Compile the Wasm buffer and implicitly fail if we have an unexpected panic or segfault or anything else that can be detected " passively " .
wasm
&[u8]
strategy
Strategy
wasm
&[u8]
strategy
Strategy