-
Is it possible to use multiple versions of lua in the same project using mlua? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Not easily due to Cargo's feature unification (which they consider a feature not a bug), but probably if you wanted to setup workspaces with separate crates for each variant, then import then into a project with various names... The question is why? |
Beta Was this translation helpful? Give feedback.
-
You can do this, probably, by creating a few dynamic libraries, one for each lua version. |
Beta Was this translation helpful? Give feedback.
You can do this, probably, by creating a few dynamic libraries, one for each lua version.
Then load required libraries (all or some) using libloading.
It's not trivial unfortunately (you basically need to write plugins for your app). Take a look to abi_stable as well.