git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit34d375811deb30b7442e712745405233ec9c070b
parent308f974ebb
authorLuuk Machielse <[email protected]>
date2026-02-26 17:01
build: use type inference for manifest import

 build.zig | 27 +--------------------------
 1 file changed, 1 insertion(+), 26 deletions(-)

diff --git a/build.zig b/build.zig
index d298815..c5083af 100644
--- a/build.zig
+++ b/build.zig
@@ -241,29 +241,4 @@ pub fn build(b: *Build) !void {
 }
 
 const version = manifest.version;
-/// Getting rid of this wart requires upstream zig improvements.
-/// See: https://github.com/ziglang/zig/issues/22775
-const manifest: struct {
-    name: @Type(.enum_literal),
-    version: []const u8,
-    paths: []const []const u8,
-    dependencies: struct {
-        pixman: struct {
-            url: []const u8,
-            hash: []const u8,
-        },
-        wayland: struct {
-            url: []const u8,
-            hash: []const u8,
-        },
-        wlroots: struct {
-            url: []const u8,
-            hash: []const u8,
-        },
-        xkbcommon: struct {
-            url: []const u8,
-            hash: []const u8,
-        },
-    },
-    fingerprint: u64,
-} = @import("build.zig.zon");
+const manifest = @import("build.zig.zon");