use OnceCell;
use crate lua_State;
thread_local!
/// Initializes the Lua state.
///
/// NOTE: this function **must** be called before calling any other function
/// exposed by this crate or there will be segfaults.
pub unsafe
/// Executes a function with access to the Lua state.
///
/// NOTE: this will segfault if the Lua state has not been initialized by
/// calling [`init`].
pub unsafe