Skip to main content

rwat/
lib.rs

1//! Parse annotated wat into wasm object files with `linking` and `reloc.CODE`
2//! custom sections.
3//!
4//! The main entry point is [`parse_rwat`], which accepts wat source using the
5//! `(@rwat)`, `(@sym)`, and `(@reloc)` annotations and returns encoded wasm
6//! bytes suitable for linking with tools such as `wasm-ld`.
7
8mod code;
9mod emit;
10mod link;
11mod parse;
12mod reloc;
13mod scan;
14mod types;
15
16mod annotation {
17    wast::annotation!(rwat);
18}
19
20pub use parse::{Error, ParseOptions, Result};
21pub use parse::{parse_rwat, parse_rwat_with};