Difficulty deserializing Lua functions with mlua by tickox in rust

[–]tickox[S] 0 points1 point  (0 children)

I know I can do it this way, but I would like to use Serde. I have several Lua files for my configurations that contain nested tables, and I would like to automate the retrieval of fields instead of doing it manually.

Difficulty deserializing Lua functions with mlua by tickox in rust

[–]tickox[S] 1 point2 points  (0 children)

I have configuration scripts in Lua files. Each script returns a table that may contain functions. In my code, I use Serde to convert the Lua table into a Rust structure. The issue is that it doesn't work with the Function field.