kubkon / zig-yaml

YAML parser for Zig
MIT License
139 stars 37 forks source link

Unable to build with zig 0.12.0-dev.1664+8ca4a5240 #30

Open perillo opened 11 months ago

perillo commented 11 months ago

With the latest Zig master (2023-11-21) I'm unable to build zig-yaml.

There are two issues:

1.

  $ zig build                                                                                          [0]
  build.zig.zon:1:2: error: missing top-level 'paths' field
  .{
   ^

2.

  $ zig build
  src/yaml.zig:490:9: error: local variable is never mutated
      var maybe_value = try Value.encode(arena.allocator(), input);
          ^~~~~~~~~~~
  src/yaml.zig:490:9: note: consider using 'const'