Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit 9777056

Browse files
committed
fixed file exists in mulitple modules
1 parent 55a224b commit 9777056

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub fn build(b: *std.Build) !void {
5757
.root_source_file = b.path("lib/client.zig"),
5858
.imports = &.{
5959
.{ .name = "zbor", .module = zbor_module },
60+
.{ .name = "keylib", .module = keylib_module },
6061
},
6162
});
6263
try b.modules.put(b.dupe("clientlib"), client_module);

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = "keylib",
3-
.version = "0.4.0",
3+
.version = "0.5.1",
44
.dependencies = .{
55
.zbor = .{
66
.url = "https://github.com/r4gus/zbor/archive/refs/tags/0.15.0.tar.gz",

lib/client/cbor_commands.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 keylib = @import("../main.zig");
2+
const keylib = @import("keylib");
33
const cbor = @import("zbor");
44
const Transport = @import("Transport.zig");
55
const err = @import("error.zig");

lib/client/transports/ctaphid/ctaphid.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const std = @import("std");
44

5-
const keylib = @import("../../../main.zig");
5+
const keylib = @import("keylib");
66
const ctaphid = keylib.ctap.transports.ctaphid;
77
const Cmd = ctaphid.Cmd;
88
const ErrorCodes = ctaphid.authenticator.ErrorCodes;

lib/main.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,7 @@ pub const ctap = struct {
247247
}
248248
};
249249

250-
pub const client = @import("client.zig");
251-
252250
test "library tests" {
253251
_ = common;
254252
_ = ctap;
255-
_ = client;
256253
}

0 commit comments

Comments
 (0)