v0.10.0-beta.2
Pre-release
Pre-release
Notes
mlua is getting close to v0.10 stable release. Send+Sync
works well and hopefully all unsoundness are fixed.
Few (planned) features left:
- Scope support
- Getting/setting metatable for primitives
- Support yielding in hooks for Lua 5.3+ (similar to yielding in Luau interrupt callback)
- Access to raw Lua state (lock protected but unsafe)
Either<A, B>
enum that implementsFromLua
LuaNativeFn
trait to wrap Rust functions with non-tuple args (will be used inFunction::wrap*
)- More code coverage
- (possibly)
IntoLua
derive macro
What's Changed
- Updated
ThreadStatus
enum to includeRunning
andFinished
variants. Error::CoroutineInactive
renamed toError::CoroutineUnresumable
.IntoLua
/IntoLuaMulti
now usesimpl trait
syntax for args (shorten froma.get::<_, T>
toa.get::<T>
).- Removed undocumented
Lua::into_static
/from_static
methods. - Futures now require
Send
bound ifsend
feature is enabled. - Dropped lifetime from
UserDataMethods
andUserDataFields
traits. Compiler::compile()
now returnsResult
(Luau).- Removed
Clone
requirement fromUserDataFields::add_field()
. TableExt
andAnyUserDataExt
traits were combined intoObjectLike
trait.- Disabled
send
feature in module mode (since we don't have exclusive access to Lua). Chunk::set_environment()
takesTable
instead ofIntoLua
type.- Reduced the compile time contribution of
next_key_seed
andnext_value_seed
. - Reduced the compile time contribution of
serde_userdata
. - Performance improvements.
New Contributors
Full Changelog: v0.10.0-beta.1...v0.10.0-beta.2