Skip to main content

Crate forma_ir

Crate forma_ir 

Source
Expand description

Forma Module IR: binary format definitions and parsers.

This crate provides the core IR types and parsing logic that can be compiled to both native Rust and WebAssembly targets.

Re-exports§

pub use format::IrError;
pub use format::IrHeader;
pub use format::IslandEntry;
pub use format::IslandTrigger;
pub use format::Opcode;
pub use format::PropsMode;
pub use format::SectionDescriptor;
pub use format::SectionTable;
pub use format::SlotEntry;
pub use format::SlotSource;
pub use format::SlotType;
pub use format::HEADER_SIZE;
pub use format::IR_VERSION;
pub use format::MAGIC;
pub use format::SECTION_TABLE_SIZE;
pub use parser::IrModule;
pub use parser::IslandTableParsed;
pub use parser::SlotTable;
pub use parser::StringTable;
pub use slot::json_to_slot_value;
pub use slot::SlotData;
pub use slot::SlotValue;
pub use walker::walk_island;
pub use walker::walk_to_html;

Modules§

dump
Human-readable text dump of an IR module for debugging and diffing.
format
FMIR binary format definition and parsers.
parser
Parsers for FMIR data tables: string table, slot table, and island table.
slot
walker
Static HTML walker — walks the IR opcode stream to produce HTML output.