wasm-ast 0.1.0

A WebAssembly syntax model useful for generate, reading, and emitting WebAssembly code.
Documentation
1
2
3
4
5
6
7
8
use thiserror::Error;

/// An error in a WebAssembly module model.
#[derive(Error, Debug)]
pub enum ModelError {
    #[error("The module does not have enough space to add the given component. The indices in a WebAssembly module are limited by the capacity of a u32.")]
    IndexOverflow(#[from] std::num::TryFromIntError),
}