nitr 0.0.0-beta.1

A Rust web server embedding Lua for fast, efficient and safe dynamic backends.
1
2
3
4
5
6
7
8
9
use mlua::{Function, Lua, Value};

/// Debug function.
pub(crate) fn create_debug_fn(lua: &Lua) -> mlua::Result<Function> {
    lua.create_function(|_, value: Value| {
        tracing::debug!("[lua] {value:#?}");
        Ok(())
    })
}