tools: Unbreak many tools

Many tools were broken after the recent hash-table refactorings, fix
them and ensure they won't silently break again.
This commit is contained in:
LemonBoy
2021-06-13 20:36:51 +02:00
committed by Andrew Kelley
parent 37f36da391
commit ff79b87fa0
5 changed files with 46 additions and 30 deletions

View File

@@ -14,6 +14,9 @@ pub fn main() !void {
const spec_path = args[1];
const spec = try std.fs.cwd().readFileAlloc(allocator, spec_path, std.math.maxInt(usize));
// Required for json parsing.
@setEvalBranchQuota(10000);
var tokens = std.json.TokenStream.init(spec);
var registry = try std.json.parse(g.Registry, &tokens, .{ .allocator = allocator });