lua-vm 0.0.4

Lua 5.4 runtime port in Rust with an AI-assisted C-to-Rust porting harness.
Documentation
//! Lua 5.4 virtual machine — runtime crate.
//!
//! Modules map to the canonical C source files per `ANALYSES/file_deps.txt`.
//! Phase A populated each module with a faithful transliteration; Phase B is
//! reconciling cross-module references against the `lua-types` foundation.

pub mod api;
pub mod ctype;
pub mod debug;
pub mod do_;
pub mod dump;
pub mod func;
pub mod object;
pub mod state;
pub mod string;
pub mod table;
pub mod trace_impls;
pub mod tagmethods;
pub mod undump;
pub mod vm;
pub mod zio;

/// Glob-imported by every module so the Phase-B extension traits resolve
/// without each module having to list them individually.
///
/// TODO(phase-b): once the canonical types in `lua-types` grow these methods
/// natively, this prelude can shrink to just the LuaState helpers.
pub mod prelude {
    pub use crate::state::{
        LuaValueExt, LuaTypeExt, StackIdxExt,
        LuaTableRefExt, LuaUserDataRefExt, LuaStringRefExt,
        LuaLClosureRefExt, LuaClosureExt, LuaProtoExt,
    };
    pub use crate::vm::{InstructionExt, OpCode};
    pub(crate) use crate::tagmethods::TagMethod;
}

// ──────────────────────────────────────────────────────────────────────────
// PORT STATUS
//   source:        (module aggregator; see individual files for C sources)
//   target_crate:  lua-vm
//   confidence:    high
//   todos:         0
//   port_notes:    0
//   unsafe_blocks: 0
//   notes:         Each pub mod corresponds to one C source under
//                  `reference/lua-5.4.7/src/`. See `ANALYSES/file_deps.txt`.
// ──────────────────────────────────────────────────────────────────────────