pub type LuaState = *mut c_void;
This is not an actual lua state, in fact it’s just a pointer to it. However you will never have ownership of a lua state here, so I opted to make the type follow suit.