[−][src]Function wabt::wasm2wat_with_features
pub fn wasm2wat_with_features<S: AsRef<[u8]>>(
wasm: S,
features: Features
) -> Result<String, Error>
Disassemble wasm binary to wasm text format with the given features.
Examples
extern crate wabt; use wabt::{Features, wasm2wat_with_features}; fn main() { let mut features = Features::new(); features.enable_simd(); assert_eq!( wasm2wat_with_features(&[ 0, 97, 115, 109, // \0ASM - magic 1, 0, 0, 0 // 01 - version ], features), Ok("(module)\n".to_owned()), ); }