zig-toml
zig-toml copied to clipboard
Zig TOML (v1.0.0) parser
Parsing optionals fail at runtime when we use ReleaseFast optimization. ```zig const std = @import("std"); const toml = @import("zig-toml"); const Opts = struct { sub: ?Sub, }; const Sub =...
this is an example of toml ```toml [tasks.a] cmd = "echo 123" [tasks.b] cmd = "echo 123" ``` I need a possible way to parse this tasks, I can't predict...
please see the below picture  if move config code to another single code file, not in main entrypoint file, memory not leak any more.
As I am building the serializer, I think we need some sort of way to deal with formatting configuration for the individual fields like which fields need to be serialized...
Newline immediately following the opening delimiter should be trimmed for multi-line literal strings
Seems like it's only done for multi-line basic currently > Multi-line literal strings are surrounded by three single quotes on each side and allow newlines. Like literal strings, there is...
Hello. I am putting together a configuration struct that has a union value as an option. So far, deserializing enums does not work. Like in the example below. ```zig const...