A follow up of this https://github.com/ziglang/zig/issues/11107 I'm trying to compile Render.zig https://codeberg.org/ziglang/zig/src/branch/master/lib/std/zig/Ast/Render.zig to optionally emit 2 space indentation.
I changed this only
const std = @import("std");
// ...
const indent_delta = 2;
I'm getting these errors
error: root source file struct 'render' has no member named 'main'
const fn_info = @typeInfo(@TypeOf(root.main)).@"fn";
~~~~^~~~~
render.zig:1:1: note: struct declared here
const std = @import("std");
^~~~~
/media/user/xzig/lib/std/start.zig:629:20: note: called inline here
return callMain(argv[0..argc], env_block);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/media/user/x/zig/lib/std/start.zig:582:38: note: called inline here
std.process.exit(callMainWithArgs(argc, argv, envp));
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~