Toml Class
complete
Voltaism
Being able to parse and stringify just as the JSON class. I already made this as a PR https://github.com/nanos-world/nanos-world-lua-lib/pull/10 . But maybe you want to put the implementation on your side… It doesn’t make sense to only support JSON while the server itself uses toml for config files.
GTNardy
complete
Voltaism
Lua integration in C : https://github.com/LebJe/toml.lua
C++ Library : https://github.com/marzer/tomlplusplus
Pure Lua integration : https://github.com/pocomane/lua-toml
T
Timmy
I fully agree, although some files must be prevented from being opened, such as the server's
Config.toml
Voltaism
Timmy: We can always read that file lol. Plus the function wouldn’t know i’m parsing this file as I’m passing it as a string.
And it would be useful at the end. Eg : to access server compression level as we cannot access it natively.
T
Timmy
Voltaism: Yea but it's something that could be prevented (if you're talking about
io.open
e.g) by wrapping the functions that makes this possibleVoltaism
Timmy: This is another subject. This has nothing to do with the toml class anyway.
T
Timmy
Voltaism: it was to answer the fact that you said it was already possible, I assumed you were talking about this way of doing it
Anyway my initial comment was mainly to say that it must be safe the second it's added, if it's added at all