This is 'Rhai' which is more rust friendly. The scripting is simple enough. Does it have to be Lua?
Discussion
No, but Lua is much more widespread. After skimming the Rhai book though they have a really nice interface. It doesn’t look like Rhai has pattern matching though so that’ll need to be built in.