lua-bind 0.1.0

Thread-safe Lua binding system with automatic type registration and dependency injection
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, thiserror::Error)]
pub enum LuaBindError {
    #[error("Lua error: {0}")]
    Lua(#[from] mlua::Error),
    
    #[error("Initialization error: {0}")]
    Init(String),

    #[error("Serialization error: {0}")]
    Serialization(String),

    #[error("Type conversion error: {0}")]
    TypeError(String),
}

pub type Result<T> = std::result::Result<T, LuaBindError>;