beamr 0.13.1

A Rust runtime with the BEAM's execution model, targeting Gleam
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `.beam` container writer — the mirror image of [`super::decode`].
//!
//! Feature-gated behind `encode` (default-off, zero new dependencies). Shares
//! the decoder's `Operand`, `Instruction`, and chunk types, so no format
//! knowledge is duplicated: every encoder is an exact inverse of its decoder,
//! and the round-trip suite (`decode(encode(decode(x))) == decode(x)`) is the
//! ratchet that keeps them aligned.

mod chunks;
mod code;
mod compact;
mod container;
mod literals;
mod opcodes;

pub use container::{EncodeError, encode_module};