[][src]Function wit_printer::print_file

pub fn print_file(file: impl AsRef<Path>) -> Result<String>

Prints an entire wasm file to its textual representation, returning the in-memory String of the textual representation.

Errors

Returns an error if the file cannot be read or it wasn't a valid wasm file.