polyplug_lua 0.1.1

Lua loader for polyplug - loads LuaJIT plugins via mlua
//! Configuration types for the Lua plugin loader.

/// Lua implementation variant.
///
/// NOTE: Epic 11 supports LuaJIT only at compile time.
/// This enum is kept for future extensibility documentation.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum LuaVersion {
    /// LuaJIT (default, vendored via mlua `luajit+vendored` feature).
    LuaJit,
}

/// Configuration for the Lua plugin loader.
#[derive(Debug, Clone)]
pub struct LuaConfig {
    /// The Lua implementation to use. Currently only `LuaJit` is supported.
    pub version: LuaVersion,
}

impl Default for LuaConfig {
    fn default() -> Self {
        Self {
            version: LuaVersion::LuaJit,
        }
    }
}