diff --git a/.gitignore b/.gitignore index c26d4af..f89eb5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ zig-out -zig-cache +.zig-cache \ No newline at end of file diff --git a/build.zig.zon b/build.zig.zon index ab2213f..63a9782 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -4,7 +4,7 @@ // In a future version of Zig it will be used for package deduplication. .version = "0.0.0", - .minimum_zig_version = "0.12.0", + .minimum_zig_version = "0.13.0", .dependencies = .{}, .paths = .{ diff --git a/src/format.zig b/src/format.zig index e11e032..779452d 100644 --- a/src/format.zig +++ b/src/format.zig @@ -12,7 +12,7 @@ const csi = esc ++ "["; const reset = csi ++ "0m"; -const font_style_codes = std.ComptimeStringMap([]const u8, .{ +const font_style_codes = std.StaticStringMap([]const u8).initComptime(.{ .{ "bold", "1" }, .{ "dim", "2" }, .{ "italic", "3" },