WABT bindings for Rust
Rust bindings for WABT. Work in progress.
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
Example
extern crate wabt;
use wat2wasm;
Rust bindings for WABT. Work in progress.
Add this to your Cargo.toml
:
[dependencies]
wabt = "0.1"
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
]
);
}