build: update to Zig 0.13.0

This commit is contained in:
Isaac Freund
2024-06-07 14:01:11 +02:00
parent c5b1d1de4e
commit 8da69699e9
7 changed files with 30 additions and 29 deletions

View File

@ -36,10 +36,11 @@ pub const Orientation = enum {
vertical,
};
// zig fmt: off
const command_impls = std.ComptimeStringMap(
const command_impls = std.StaticStringMap(
*const fn (*Seat, []const [:0]const u8, *?[]const u8) Error!void,
).initComptime(
.{
// zig fmt: off
.{ "attach-mode", @import("command/attach_mode.zig").defaultAttachMode },
.{ "background-color", @import("command/config.zig").backgroundColor },
.{ "border-color-focused", @import("command/config.zig").borderColorFocused },
@ -96,9 +97,9 @@ const command_impls = std.ComptimeStringMap(
.{ "unmap-switch", @import("command/map.zig").unmapSwitch },
.{ "xcursor-theme", @import("command/xcursor_theme.zig").xcursorTheme },
.{ "zoom", @import("command/zoom.zig").zoom },
// zig fmt: on
},
);
// zig fmt: on
pub const Error = error{
NoCommand,