Skip to content

Commit 39ec7ec

Browse files
committed
refactor(build): reorganize imports and aliases
- Move type alias declarations earlier in file - Reorder const declarations for better structure - Group related imports and constants together
1 parent 6ebe20f commit 39ec7ec

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

build.zig

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
const std = @import("std");
2-
const builtin = @import("builtin");
3-
42
const Build = std.Build;
3+
const OptimizeMode = std.builtin.OptimizeMode;
4+
const CrossTarget = std.Target.Query;
5+
const Compile = Build.Step.Compile;
6+
const Module = Build.Module;
7+
const builtin = @import("builtin");
8+
const current_zig = builtin.zig_version;
59

610
// Minimum required Zig version for this project
711
const min_zig_string = "0.12.0";
8-
const current_zig = builtin.zig_version;
9-
1012
// NOTE: we should note that when enable tls support we cannot compile with musl
1113

1214
// Compile-time check to ensure the Zig version meets the minimum requirement
@@ -19,11 +21,6 @@ comptime {
1921

2022
// Define logger and useful type aliases
2123
const log = std.log.scoped(.WebUI);
22-
const OptimizeMode = std.builtin.OptimizeMode;
23-
const CrossTarget = std.Target.Query;
24-
const Compile = Build.Step.Compile;
25-
const Module = Build.Module;
26-
2724
// Default build configuration options
2825
const default_isStatic = true;
2926
const default_enableTLS = false;

0 commit comments

Comments
 (0)