diff --git a/build.zig b/build.zig index 10ff99e..3e3da05 100644 --- a/build.zig +++ b/build.zig @@ -25,7 +25,7 @@ pub fn build(b: *std.Build) !void { //lib.install(); const zbor_module = b.addModule("zbor", .{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -34,7 +34,7 @@ pub fn build(b: *std.Build) !void { // Creates a step for unit testing. const lib_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) !void { // Creates a step for fuzz testing. const fuzz_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/fuzz.zig" }, + .root_source_file = b.path("src/fuzz.zig"), .target = target, .optimize = optimize, }); @@ -64,7 +64,7 @@ pub fn build(b: *std.Build) !void { const example = b.addExecutable(.{ .name = name, - .root_source_file = .{ .path = path }, + .root_source_file = b.path(path), .target = target, .optimize = optimize, }); diff --git a/build.zig.zon b/build.zig.zon index 6184da9..a89f53e 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,12 +2,12 @@ .name = "zbor", // This is a [Semantic Version](https://semver.org/). // In a future version of Zig it will be used for package deduplication. - .version = "0.14.0", + .version = "0.15.0", // This field is optional. // This is currently advisory only; Zig does not yet do anything // with this value. - .minimum_zig_version = "0.12.0", + .minimum_zig_version = "0.13.0", // This field is optional. // Each dependency must either provide a `url` and `hash`, or a `path`. @@ -60,4 +60,3 @@ "data", }, } - diff --git a/src/.zig-cache/h/44f34307f561ecdea4866e8941cef733.txt b/src/.zig-cache/h/44f34307f561ecdea4866e8941cef733.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/.zig-cache/h/timestamp b/src/.zig-cache/h/timestamp new file mode 100644 index 0000000..e69de29 diff --git a/src/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig b/src/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig new file mode 100644 index 0000000..72e4e83 --- /dev/null +++ b/src/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig @@ -0,0 +1,2 @@ +pub const packages = struct {}; +pub const root_deps: []const struct { []const u8, []const u8 } = &.{}; diff --git a/src/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 b/src/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 new file mode 100644 index 0000000..55abb2c Binary files /dev/null and b/src/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 differ diff --git a/src/.zig-cache/z/9336bc0dae9317405c6789805f0dbf96 b/src/.zig-cache/z/9336bc0dae9317405c6789805f0dbf96 new file mode 100644 index 0000000..17ebfb0 Binary files /dev/null and b/src/.zig-cache/z/9336bc0dae9317405c6789805f0dbf96 differ diff --git a/src/cose.zig b/src/cose.zig index e22d9a5..7662fa7 100644 --- a/src/cose.zig +++ b/src/cose.zig @@ -301,7 +301,7 @@ pub const Key = union(KeyTag) { // Sign the data const sig = try signer.finalize(); - var buffer: [EcdsaP256Sha256.Signature.der_encoded_max_length]u8 = undefined; + var buffer: [EcdsaP256Sha256.Signature.der_encoded_length_max]u8 = undefined; const der = sig.toDer(&buffer); const mem = try allocator.alloc(u8, der.len); @memcpy(mem, der); diff --git a/src/main.zig b/src/main.zig index 3fc5dba..9f4589a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -30,7 +30,7 @@ pub const ArrayBackedSlice = parser.ArrayBackedSlice; pub const ArrayBackedSliceType = parser.ArrayBackedSliceType; // TODO: can we somehow read this from build.zig.zon??? -pub const VERSION: []const u8 = "0.14.0"; +pub const VERSION: []const u8 = "0.15.0"; test "main tests" { _ = cbor;