Alex Orlenko
ecc09c4387
Add luaL_loadbufferenv helper to all Lua versions
2024-08-25 17:29:58 +01:00
Alex Orlenko
b4892c228c
Add rustfmt.toml
2024-07-31 13:42:37 +01:00
Yiyu Lin
b62f2ee0f7
chore: make clippy happy ( #388 )
...
Co-authored-by: hzlinyiyu <hzlinyiyu@corp.netease.com >
2024-03-25 13:26:06 +00:00
Alex Orlenko
3c801e7b17
Expose internal POLL_PENDING constant (hidden)
2024-01-20 15:52:00 +00:00
Alex Orlenko
c0a0983025
mlua-sys: always inline lua_error
2024-01-03 11:31:39 +00:00
Alex Orlenko
69ff0c5509
mlua-sys: fix Lua 5.2 lua_sethook definition
2024-01-03 10:22:42 +00:00
ByteDream
0b9a85e183
Add lua emscripten support ( #338 )
2023-12-14 14:54:57 +00:00
Peter Marheine
e3f34f319c
Correct C return type for lua_error
...
The definition of lua_error in all of Lua 5.1 through 5.4 says lua_error
returns int, but the Rust definition of the same function treats it as
void (because it's known not to return). This causes link-time errors when
building for wasm targets because the wasm linker is aware of function return
types and errors out if they differ between definition and declaration.
2023-12-06 21:16:52 +11:00
Alex Orlenko
9f5325ef2f
Use c-unwind ABI (Rust 1.71+)
2023-07-22 23:54:30 +01:00
Alex Orlenko
df9251fb52
Support LUA_LIB_NAME in module mode for windows.
...
In this mode we will link with the particular lua library.
2023-07-21 10:34:26 +01:00
Alex Orlenko
483e6be207
Support vendored module mode for windows (raw-dylib linking)
...
This is requires Rust 1.71+
2023-07-20 00:43:57 +01:00
Alex Orlenko
4306e6e978
Add Value::to_string() method similar to luaL_tolstring.
...
It uses `__tostring` metamethod if set.
Closes #279
2023-05-27 01:29:08 +01:00
Alex Orlenko
15dc0e9f23
Move ffi module into mlua-sys crate
2023-04-12 23:23:34 +01:00