- Notifications
You must be signed in to change notification settings - Fork114
High level Lua bindings to Rust
License
mlua-rs/rlua
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
rlua is now deprecated in favour of mlua: see below for migration information
rlua
is now a thin transitional wrapper aroundmlua
; it is recommended to use mluadirectly for new projects and to migrate to it when convenient.mlua
was afork ofrlua
which has recently seen more development activity and newfeatures.
rlua
0.20 includes some utilities to help transition tomlua
, but is otherwisejust re-exportingmlua
directly.
The main changes are:
In
mlua
,Lua::context()
is no longer necessary. The methods previously onContext
can now be called directly on theLua
object.rlua
0.20 includesanRluaCompat
extension trait which adds acontext()
method which can be usedto avoid having to update code all at once.The
ToLua
trait has been renamed toIntoLua
, and its conversion methodto_lua
is nowinto_lua
.rlua
0.20 includesToLua
as an alias forIntoLua
and anextensionToLuaCompat
which adds ato_lua
method as a temporary convenience.
A few other changes which should be less disruptive:
mlua
has different defaults and options for blocking loading C libraries orcompiled modules from Lua code or catching Rust panics. Check theLua::new_with
and unsafe variants for the new options.
About
High level Lua bindings to Rust
Resources
License
Uh oh!
There was an error while loading.Please reload this page.