Crate wasmfmt[][src]

Structs

Diff

Created from two different strings. Presents the difference when formatted.

Formatter

A formatter used to format individual AST nodes.

Options

Enums

Error

Traits

Fmt

The Fmt trait allows individual WebAssembly AST nodes to be formatted separately.

Functions

fmt

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.