mlua-rs/rlua

Support multiple Lua versions

Closed this issue · 3 comments

As copied from #172 (comment)

rlua needs to at least support Lua 5.4 when it is released, and ideally it would also support Lua 5.1 (and LuaJIT) and 5.2. This is potentially hard to make truly sound, but rlua has at least already done the hard work to protect against memory allocation and GC errors, so this is not completely infeasible.

There is a bit of extra discussion on this starting from #172 (comment)

Updating to Lua 5.4 has an open PR thanks to a contributor: #186 .

An initial implementation (supporting Lua 5.1, 5.3, and 5.4) is in #218 .

Done in 0.18.0-alpha.0.