[−][src]Function wast::parse_file
pub fn parse_file(file: impl AsRef<Path>) -> Result<Vec<u8>>
Parses a file on disk as a WebAssembly Text format file, returning the file translated to a WebAssembly binary file.
For more information see the parse_str
documentation.
Errors
For information about errors, see the parse_str
documentation.
Examples
let binary = wast::parse_file("./foo.wat")?; // ...