Function print_file

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

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.