low-luajit 0.5.0

Low level but safe bindings to the LuaJIT C API with no dependencies and no-std support to create Lua modules using Rust.
Documentation
// This "example" is used internally by me for testing whenever developing new features, so it's not a real example...

#![cfg(not(doc))]

use low_luajit::{AmountReturned, LuaState};

extern "C-unwind" fn test(mut lua: LuaState) -> AmountReturned {
	/*lua.push_number(12.3);
	lua.push_number(12.3);
	//lua.yield_any(123123)
	lua.get_global(c"math");
	println!("{}", lua.display(-1));
	unsafe { low_luajit::ffi::luaopen_math(lua.as_ptr()); }
	lua.get_global(c"math");
	println!("{}", lua.display(-1));
	lua.pop(1);
	lua.return_any(1)*/

	let foo = lua.find_table(LuaState::GLOBALS_INDEX, c"gmatch", 0);
	lua.push_nil();
	lua.pop(1);
	let _ = dbg!(foo, lua.get_top());

	lua.new_table();
	lua.set_metatable(-12312321);

	lua.return_none()
}

#[unsafe(no_mangle)]
extern "C-unwind" fn luaopen_test(lua: LuaState) -> AmountReturned {
	lua.return_cfunction(test)
}