A pretty printer for zig
zig
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

init

Altagos d3a0edca

+44
+2
.gitignore
··· 1 + .zig-cache 2 + zig-out
+32
build.zig
··· 1 + const std = @import("std"); 2 + 3 + pub fn build(b: *std.Build) void { 4 + const target = b.standardTargetOptions(.{}); 5 + const optimize = b.standardOptimizeOption(.{}); 6 + 7 + const pretty = b.addModule("pretty", .{ 8 + .root_source_file = b.path("pretty.zig"), 9 + .target = target, 10 + .optimize = optimize, 11 + }); 12 + 13 + const example = b.addExecutable(.{ 14 + .root_module = b.createModule(.{ 15 + .root_source_file = b.path("example/main.zig"), 16 + .target = target, 17 + .optimize = optimize, 18 + .imports = &.{ 19 + .{ .name = "pretty", .module = pretty }, 20 + }, 21 + }), 22 + .name = "pretty-example", 23 + }); 24 + 25 + const run_example = b.addRunArtifact(example); 26 + run_example.step.dependOn(b.getInstallStep()); 27 + 28 + if (b.args) |args| run_example.addArgs(args); 29 + 30 + const run_step = b.step("example", "Run the example"); 31 + run_step.dependOn(&run_example.step); 32 + }
+10
build.zig.zon
··· 1 + .{ 2 + .name = .pretty, 3 + .version = "0.0.1", 4 + .minimum_zig_version = "0.16.0-dev.2261+d6b3dd25a", 5 + .paths = .{ 6 + "build.zig", 7 + "build.zig.zon", 8 + }, 9 + .fingerprint = 0x478ad1adbc38df9, 10 + }
example/main.zig

This is a binary file and will not be displayed.

pretty.zig

This is a binary file and will not be displayed.