Skip to content

Commit 327dfad

Browse files
committed
fix: use bare identifier for package name (Zig 0.15+ compat)
1 parent 2d56b12 commit 327dfad

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55
_ = b.standardOptimizeOption(.{});
66

77
// Library module
8-
const lib_mod = b.addModule("zig-config", .{
8+
const lib_mod = b.addModule("zig_config", .{
99
.root_source_file = b.path("src/zig-config.zig"),
1010
.target = target,
1111
.link_libc = true,
@@ -38,7 +38,7 @@ pub fn build(b: *std.Build) void {
3838
// .target = target,
3939
// .optimize = optimize,
4040
// });
41-
// test_exe.root_module.addImport("zig-config", zig_config_module);
41+
// test_exe.root_module.addImport("zig_config", zig_config_module);
4242
//
4343
// const run_test = b.addRunArtifact(test_exe);
4444
// test_step.dependOn(&run_test.step);

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.{
2-
.name = .@"zig-config",
2+
.name = .zig_config,
33
.version = "0.1.1",
44
.fingerprint = 0x98daf4fbd7f573d9,
55
.minimum_zig_version = "0.15.1",

examples/basic.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const zig_config = @import("zig-config");
2+
const zig_config = @import("zig_config");
33

44
// Define your configuration structure with type safety!
55
const AppConfig = struct {

0 commit comments

Comments
 (0)