Skip to main content

lua_vm/
lib.rs

1//! Lua 5.4 virtual machine — runtime crate.
2//!
3//! Modules map to the canonical C source files per `ANALYSES/file_deps.txt`.
4
5pub mod api;
6pub mod debug;
7pub mod do_;
8pub mod dump;
9pub mod func;
10pub mod object;
11#[cfg(feature = "opcode-profile")]
12pub mod opcode_profile;
13pub mod state;
14pub mod string;
15pub mod table;
16pub mod tagmethods;
17pub mod trace_impls;
18pub mod undump;
19pub mod vm;
20pub mod zio;
21
22/// Glob-imported by every module so the extension traits below resolve
23/// without each module having to list them individually.
24pub mod prelude {
25    pub use crate::state::{
26        LuaClosureExt, LuaLClosureRefExt, LuaProtoExt, LuaStringRefExt, LuaTableRefExt, LuaTypeExt,
27        LuaUserDataRefExt, LuaValueExt, StackIdxExt,
28    };
29    pub(crate) use crate::tagmethods::TagMethod;
30    pub use crate::vm::{InstructionExt, OpCode};
31}