Function wasmfmt::fmt[][src]

pub fn fmt(source: &str, options: Options) -> String

Format .wat source code. Uses tabs for indentation. Resolves symbolic identifiers and unfolds instruction expressions. Extracts inline exports and type definitions. Encodes all number literals in decimal notation.