|
Is it possible to use multiple versions of lua in the same project using mlua? |
Answered by
khvzak
Oct 18, 2023
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? |
1 reply
|
You can do this, probably, by creating a few dynamic libraries, one for each lua version. |
0 replies
Answer selected by
toxamin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.