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 implementsFromLuaLuaNativeFntrait to wrap Rust functions with non-tuple args (will be used inFunction::wrap*)- More code coverage
- (possibly)
IntoLuaderive macro
What's Changed
- Updated
ThreadStatusenum to includeRunningandFinishedvariants. Error::CoroutineInactiverenamed toError::CoroutineUnresumable.IntoLua/IntoLuaMultinow usesimpl traitsyntax for args (shorten froma.get::<_, T>toa.get::<T>).- Removed undocumented
Lua::into_static/from_staticmethods. - Futures now require
Sendbound ifsendfeature is enabled. - Dropped lifetime from
UserDataMethodsandUserDataFieldstraits. Compiler::compile()now returnsResult(Luau).- Removed
Clonerequirement fromUserDataFields::add_field(). TableExtandAnyUserDataExttraits were combined intoObjectLiketrait.- Disabled
sendfeature in module mode (since we don't have exclusive access to Lua). Chunk::set_environment()takesTableinstead ofIntoLuatype.- Reduced the compile time contribution of
next_key_seedandnext_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