Function wasmfmt::fmt

source · []
pub fn fmt(source: &str, options: Options) -> String
Expand description

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.