Closed A-Cloud-Ninja closed 1 year ago
@A-Cloud-Ninja are you able to provide an example usage from Lua for this pls?
Absolutely
local libcorn = require("libcorn")
local res,t = pcall(libcorn.parse,'{foo="bar"}')
if res then
print(t.foo)
else
print(t)
end
Do you want this in a commit or is just this fine?
Do you want this in a commit or is just this fine?
That's great, thanks :)
Let's see if I got the CI working first second third time...
Introduces the structure for a Lua process to load libcorn.so
Currently when this compiles, it creates a
liblibcorn.so
which has to be renamed during use from a pure Lua perspective, tolibcorn.so
(this is an issue with how Lua looks for and loads libraries, rather than a rust problem directly)