From 9c9ffdf06cac191bd614fe030de3624a055f805b Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Fri, 7 Jun 2024 23:14:19 +0200 Subject: [PATCH] fix: Update to zig 0.13.0 --- .gitignore | 2 +- build.zig.zon | 2 +- src/format.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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" },