Skip to main content

Crate rwat

Crate rwat 

Source
Expand description

Parse annotated wat into wasm object files with linking and reloc.CODE custom sections.

The main entry point is parse_rwat, which accepts wat source using the (@rwat), (@sym), and (@reloc) annotations and returns encoded wasm bytes suitable for linking with tools such as wasm-ld.

Structs§

ParseOptions
Options used when parsing annotated wat input.

Functions§

parse_rwat
Parses annotated wat into relocatable wasm file.
parse_rwat_with
Parses annotated wat into relocatable wasm using explicit parse options.

Type Aliases§

Error
Re-export wast’s Error
Result
A convenience type definition for Result where the error is hardwired to Error.