Skip to content

Require lua script from rust #525

Discussion options

You must be logged in to vote

Not quite. You have to keep going in Rust syntax not Lua. At the end of that sequence my_module will be of type LuaTable on the Rust side. You can call functions in that table, but you're going to need to first .get() them (just like I did to get the require() function out of Lua and bring it over to a Rust handle I can .call(). That or you need to use the method call functions on the LuaTable type.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alerque
Comment options

Answer selected by hgftrdw45ud67is8o89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants