Rust bindings for WABT. Work in progress.
Add this to your Cargo.toml
:
toml
[dependencies]
wabt = "0.1"
```rust extern crate wabt; use wabt::wat2wasm;
fn main() { assert_eq!( wat2wasm("(module)").unwrap(), &[ 0, 97, 115, 109, // \0ASM - magic 1, 0, 0, 0 // 0x01 - version ] ); } ```