Skip to content

Commit

Permalink
fixed file exists in mulitple modules
Browse files Browse the repository at this point in the history
  • Loading branch information
r4gus committed Aug 23, 2024
1 parent 55a224b commit 9777056
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub fn build(b: *std.Build) !void {
.root_source_file = b.path("lib/client.zig"),
.imports = &.{
.{ .name = "zbor", .module = zbor_module },
.{ .name = "keylib", .module = keylib_module },
},
});
try b.modules.put(b.dupe("clientlib"), client_module);
Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.{
.name = "keylib",
.version = "0.4.0",
.version = "0.5.1",
.dependencies = .{
.zbor = .{
.url = "https://github.com/r4gus/zbor/archive/refs/tags/0.15.0.tar.gz",
Expand Down
2 changes: 1 addition & 1 deletion lib/client/cbor_commands.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const std = @import("std");
const keylib = @import("../main.zig");
const keylib = @import("keylib");
const cbor = @import("zbor");
const Transport = @import("Transport.zig");
const err = @import("error.zig");
Expand Down
2 changes: 1 addition & 1 deletion lib/client/transports/ctaphid/ctaphid.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const std = @import("std");

const keylib = @import("../../../main.zig");
const keylib = @import("keylib");
const ctaphid = keylib.ctap.transports.ctaphid;
const Cmd = ctaphid.Cmd;
const ErrorCodes = ctaphid.authenticator.ErrorCodes;
Expand Down
3 changes: 0 additions & 3 deletions lib/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,7 @@ pub const ctap = struct {
}
};

pub const client = @import("client.zig");

test "library tests" {
_ = common;
_ = ctap;
_ = client;
}

0 comments on commit 9777056

Please sign in to comment.