- Fixed memory leak in some cases
- Added
LuaState::new_array_table
- Improve the support to no-std
- Improve the implementation of
new_iter_map
- Added new marker
ScopeUserdata
FromStr
- Added new macros
impl_fromlua_as_bitflags
impl_tolua_as_bitflags
bitflags_table
enum_table
- Added bindings
OsStr
/OsString
- Added bindings to
std::io
module - Added bindings to
chrono
crate - Change the
refs
parameter ofnew_userdata_with_values
/new_iter
/new_iter_map
to anyFromLuaMulti
- Adapted macro syntax to rustc 1.76
- More strictly type checking and bugfix
- Improve builtin bindings
- Improve the implementation to async bindings
- Added
ValRef::tostring
, which corresponds to the tostring function in lua - Added
LuaState::bind_async
, which can bind an async block as a lua userdata, and release the ownership after one call - Added bindings to
bytes
crate - Added bindings to
TcpListener
TcpStream
- Bugfix: memory leak
- Improve builtin bindings
- Bugfix for serialization to enum type
- Removed
Coroutine::call_async
- Added tokio bindings
- Bugfix:
- failed to catch error when calling async function with pcall
__index
is overwritten when init userdata's metatable
- Bugfix for async function and userdata bindings
- Improve bindings to rust thread
- Change binding for rust iterator to userdata instead of closure
- Added
compat
feature, impls a simple compatibility layer to mlua/rlua - Added impls
Add/Sub/Mul/Div/...
forValRef
, which you can perform arithmetic operations in rust, just like in lua
- Added
impl_tolua_as_serde!
/impl_fromlua_as_serde!
macro toimpl ToLua
/impl FromLua
for serializable types easily - Added
impl_toluamulti!
macro toimpl ToLuaMulti
for types which can convert to another type implemented ToLuaMulti easily - Removed dependence to the unstable features fn_traits/tuple_trait
- Make
serde
as an optional feature
- Removed
FromLua::from_index
, now all useFromLua::from_lua
- Removed
ValRef::check_cast
FromLua::from_lua
returnsResult<Self>
instead ofOption<Self>
ValRef::cast
returnsResult<>
instead ofOption<>
- More soundness
- More
check_stack
for preventing assert(aborting) from lua - Non-table and non-userdata access check
- More
- Added
lua_module!
macro to create lua module