Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

High level Lua bindings to Rust

License

NotificationsYou must be signed in to change notification settings

mlua-rs/rlua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Migration

rlua 0.20 includes some utilities to help transition tomlua, but is otherwisejust re-exportingmlua directly.

The main changes are:

  • Inmlua,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.

  • TheToLua trait has been renamed toIntoLua, and its conversion methodto_luais 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_withand unsafe variants for the new options.

About

High level Lua bindings to Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp