mod: bump zig version to 0.17.1
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 7m41s
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 7m41s
This commit is contained in:
1 parent
a6f140977c
commit
8d84840af3
2 files changed
+6
-12
No files matched your search
@@ -66,12 +66,6 @@ pub fn build(b: *std.Build) void {
|
|||||||
// files, this ensures they will be present and in the expected location.
|
// files, this ensures they will be present and in the expected location.
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
|
|
||||||
// This allows the user to pass arguments to the application in the build
|
|
||||||
// command itself, like this: `zig build run -- arg1 arg2 etc`
|
|
||||||
if (b.args) |args| {
|
|
||||||
run_cmd.addArgs(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
// This creates a build step. It will be visible in the `zig build --help` menu,
|
// This creates a build step. It will be visible in the `zig build --help` menu,
|
||||||
// and can be selected like this: `zig build run`
|
// and can be selected like this: `zig build run`
|
||||||
// This will evaluate the `run` step rather than the default, which is "install".
|
// This will evaluate the `run` step rather than the default, which is "install".
|
||||||
|
|||||||
+6
-6
@@ -102,7 +102,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma
|
|||||||
try writer.writeAll(@typeName(Object));
|
try writer.writeAll(@typeName(Object));
|
||||||
try writer.writeAll(" = struct {\n");
|
try writer.writeAll(" = struct {\n");
|
||||||
inline for (s.fields) |field| {
|
inline for (s.fields) |field| {
|
||||||
try writer.writeAll("\t" ** (depth + 1));
|
try writer.writeAll("\t" * (depth + 1));
|
||||||
try writer.writeAll(".");
|
try writer.writeAll(".");
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
try writer.writeAll(" = ");
|
try writer.writeAll(" = ");
|
||||||
@@ -111,18 +111,18 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma
|
|||||||
try inner_format(@field(object, field.name), format, options, writer, depth + 1);
|
try inner_format(@field(object, field.name), format, options, writer, depth + 1);
|
||||||
try writer.writeAll(",\n");
|
try writer.writeAll(",\n");
|
||||||
}
|
}
|
||||||
try writer.writeAll("\t" ** depth);
|
try writer.writeAll("\t" * depth);
|
||||||
try writer.writeAll("}");
|
try writer.writeAll("}");
|
||||||
},
|
},
|
||||||
.@"enum" => |e| {
|
.@"enum" => |e| {
|
||||||
try writer.writeAll(@typeName(Object));
|
try writer.writeAll(@typeName(Object));
|
||||||
try writer.writeAll(" = enum {\n");
|
try writer.writeAll(" = enum {\n");
|
||||||
inline for (e.fields) |field| {
|
inline for (e.fields) |field| {
|
||||||
try writer.writeAll("\t" ** (depth + 1));
|
try writer.writeAll("\t" * (depth + 1));
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
try writer.writeAll(",\n");
|
try writer.writeAll(",\n");
|
||||||
}
|
}
|
||||||
try writer.writeAll("\t" ** depth);
|
try writer.writeAll("\t" * depth);
|
||||||
try writer.writeAll("} = .");
|
try writer.writeAll("} = .");
|
||||||
try writer.writeAll(@tagName(object));
|
try writer.writeAll(@tagName(object));
|
||||||
},
|
},
|
||||||
@@ -135,7 +135,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma
|
|||||||
}
|
}
|
||||||
try writer.writeAll(" {\n");
|
try writer.writeAll(" {\n");
|
||||||
inline for (u.fields) |field| {
|
inline for (u.fields) |field| {
|
||||||
try writer.writeAll("\t" ** (depth + 1));
|
try writer.writeAll("\t" * (depth + 1));
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
if (@typeInfo(field.type) != .void) {
|
if (@typeInfo(field.type) != .void) {
|
||||||
try writer.writeAll(": ");
|
try writer.writeAll(": ");
|
||||||
@@ -143,7 +143,7 @@ fn inner_format(object: anytype, comptime format: []const u8, options: fmt.Forma
|
|||||||
}
|
}
|
||||||
try writer.writeAll(",\n");
|
try writer.writeAll(",\n");
|
||||||
}
|
}
|
||||||
try writer.writeAll("\t" ** depth);
|
try writer.writeAll("\t" * depth);
|
||||||
try writer.writeAll("} = ");
|
try writer.writeAll("} = ");
|
||||||
if (u.tag_type) |Tag| {
|
if (u.tag_type) |Tag| {
|
||||||
try writer.writeAll(".{ .");
|
try writer.writeAll(".{ .");
|
||||||
|
|||||||
Reference in new issue
Block a user