Alex Orlenko
75a15ceabf
v0.9.5
v0.9.5
2024-01-25 22:24:58 +00:00
Alex Orlenko
60730fd068
Update compile tests messages
2024-01-25 18:19:16 +00:00
Alex Orlenko
df778b7b33
Impl Into/FromLua for OwnedString
2024-01-25 18:04:55 +00:00
Alex Orlenko
45299c0ef1
Update authors
2024-01-25 12:56:57 +00:00
Alex Orlenko
38eec1236c
Update itertools dependency
2024-01-25 10:49:39 +00:00
Alex Orlenko
145c5b316b
Fix FromLua derive proc macro to cover more cases
2024-01-25 10:26:43 +00:00
Alex Orlenko
e97e69a309
Update Luau to 0.609 (luau-src v0.8.0)
2024-01-25 09:38:46 +00:00
Alex Orlenko
2ac7b23596
Impl Into/FromLua for OwnedThread
2024-01-25 09:34:37 +00:00
Alex Orlenko
8200bee467
Implement IntoLua for ref to String/Table/Function/AnyUserData
...
This would prevent cloning plus has better performance when pushing values to Lua stack (`IntoLua::push_into_stack` method)
2024-01-23 22:14:50 +00:00
Alex Orlenko
fe6ab250bf
Update codecov links after moving repo
2024-01-23 21:56:00 +00:00
Alex Orlenko
804972b099
Fix typos in examples/guided_tour
2024-01-23 20:50:57 +00:00
Alex Orlenko
727f99ee4d
Implement IntoLua for &RegistryKey
...
This would allow just passing registry keys to arguments with fasttrack to push directly into stack.
2024-01-20 22:04:28 +00:00
Alex Orlenko
3c801e7b17
Expose internal POLL_PENDING constant (hidden)
2024-01-20 15:52:00 +00:00
Alex Orlenko
a38e484fe9
Increase luau max stack size to 1M from 100k
2024-01-18 23:05:23 +00:00
Alex Orlenko
eed48889cd
v0.9.4
v0.9.4
2024-01-10 15:41:31 +00:00
Alex Orlenko
b5896173fd
Include skip_memory_check code only when the corresponding attribute set for module
2024-01-10 10:08:33 +00:00
Alex Orlenko
205989f569
Fix edge case when loading many-in-one module from thread without using its state.
...
If Lua previously been initialized in main thread and then new module was loaded from thread
we reuse old state which confuses Lua loader.
2024-01-10 00:37:02 +00:00
Alex Orlenko
12472de1d2
v0.9.3
v0.9.3
2024-01-08 21:02:45 +00:00
Alex Orlenko
a68708c12e
Update README & CHANGELOG
2024-01-08 18:44:49 +00:00
Alex Orlenko
4c0474d573
Fix docsrs attr for Thread::reset
2024-01-06 15:04:18 +00:00
Alex Orlenko
60e859f643
Fix (nightly) warning in doc
2024-01-06 12:55:18 +00:00
Alex Orlenko
9ed0d90746
Run tests for wasm32-unknown-emscripten
2024-01-06 12:12:56 +00:00
Alex Orlenko
514ec24252
Fix lua53/lua54 luaL_error definition (for wasm32)
2024-01-03 12:02:53 +00:00
Alex Orlenko
244e6c9c12
Bump rustyline dependency
2024-01-03 11:34:50 +00:00
Alex Orlenko
4749e3a22a
Update minimal lua(u) versions (needed for wasm32)
2024-01-03 11:34:34 +00:00
Alex Orlenko
cf153f38de
Panic when try to build for wasm32 without vendored feature (except luau)
2024-01-03 11:33:42 +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
Aymen-Hakim
bf79d6c212
Update lauxlib.rs ( #351 )
...
lua54 in lua53 src.
2023-12-27 15:07:59 -05:00
ByteDream
0b9a85e183
Add lua emscripten support ( #338 )
2023-12-14 14:54:57 +00:00
Alex Orlenko
59974d7bde
Merge pull request #337 from tari/emscripten-support
...
Fix build for emscripten target
2023-12-13 13:55:26 +00:00
Joel Natividad
61e846326c
Update Cargo.toml ( #342 )
2023-12-10 17:04:37 +00:00
Alex Orlenko
3547985bb0
Merge pull request #339 from eatradish/fix-loongarch64-build
...
Add loongarch64 architecture support
2023-12-08 09:13:07 +00:00
eatradish
4c92580201
Add loongarch64 architecture support
2023-12-08 11:16:52 +08: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
Peter Marheine
b16f3895a0
lua54: use changed return type for lua_rawlen
...
Lua 5.4 changed lua_rawlen to return lua_Unsigned, versus size_t in earlier
versions. Change the C API signature to match, and add a wrapper function with
the same name that maintains a stable Rust API by casting to usize.
2023-12-06 21:09:25 +11:00
Alex Orlenko
a4c919231c
Don't clone function name when calling async userdata method
2023-12-03 19:55:27 +00:00
Alex Orlenko
e4d6e92287
(async) Move "pending" poll value from env to poll_future() results
2023-12-02 15:01:40 +00:00
Alex Orlenko
642201a7e0
Remove locals from __mlua_async_poll helper
2023-12-01 18:11:06 +00:00
Alex Orlenko
c36808b251
Faster Function::call() for lua51/jit/luau
2023-12-01 12:03:46 +00:00
Alex Orlenko
2022de2156
v0.9.2
v0.9.2
2023-11-21 22:35:59 +00:00
Alex Orlenko
66e01548ce
Update Luau+windows require dylib failed test
2023-11-20 22:16:44 +00:00
Alex Orlenko
93b505cff9
Integrate Luau package into mlua api.
...
Eg. `Lua::load_from_std_lib` with `StdLib::PACKAGE` is now supported for Luau.
2023-11-20 12:08:08 +00:00
Alex Orlenko
44f5688c32
Include luau to ci module tests
2023-11-16 17:54:40 +00:00
Alex Orlenko
2bee5ed33a
Support binary modules for Luau on cfg(unix)
2023-11-16 15:54:25 +00:00
Alex Orlenko
2d775695ef
Rewrite Luau require function to support module loaders.
...
Also add `package` library with `path`/`loaded`/`loaders`.
2023-11-16 14:39:17 +00:00
Alex Orlenko
34476ebf53
Support LuaJIT cdata type (produced by ffi module)
2023-11-16 13:33:23 +00:00
Alex Orlenko
5043447f23
Support Luau buffer type and and library.
...
Buffer is an object that represents a fixed-size mutable block of memory and added to Luau 0.601.
See https://luau-lang.org/library#buffer-library for more details.
2023-11-16 12:55:58 +00:00
Alex Orlenko
b879abc418
Add lua_newuserdata_t helper to mlua-sys/luau
2023-10-24 23:58:47 +01:00
Alex Orlenko
a1e39a8620
Remove MemoryState from ExtraData and retrieve using lua_getallocf (recently added to Luau)
2023-10-24 00:23:32 +01:00