Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
1d5342e695
update example with latest nightly
All checks were successful
aws-zig nightly build / build-zig-nightly (push) Successful in 1m7s
2026-05-12 08:14:13 -07:00
30b295209b
remove uses of dupeZ
Some checks failed
aws-zig nightly build / build-zig-nightly (push) Failing after 8m14s
2026-05-12 08:03:31 -07:00
8262340c56
update aws dep in example
All checks were successful
aws-zig nightly build / build-zig-nightly (push) Successful in 24m50s
2026-05-05 12:05:10 -07:00
b4739c6f1f
** has been removed from the language - convert to @splat
Some checks failed
aws-zig nightly build / build-zig-nightly (push) Failing after 28m17s
2026-05-05 09:59:49 -07:00
0623e9749e
update mise config to zig master for this branch
All checks were successful
aws-zig nightly build / build-zig-nightly (push) Successful in 7m57s
2026-04-17 09:12:49 -07:00
5 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
[tools]
prek = "0.3.1"
"ubi:DonIsaac/zlint" = "0.7.9"
zig = "0.16.0"
zig = "master"
zls = "0.16.0"

View file

@ -6,8 +6,8 @@
.dependencies = .{
.aws = .{
.url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/2fddf4f122198ba64fbb2320e702b317b0b86837/2fddf4f122198ba64fbb2320e702b317b0b86837-with-models.tar.gz",
.hash = "aws-0.0.1-SbsFcLhoAwQ5TcclMwXhIljwW0Zz_Kcjd4yrIeQq5uHt",
.url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/30b295209b6fdd361eed16dcbcf2f66d78df16da/30b295209b6fdd361eed16dcbcf2f66d78df16danightly-zig-with-models.tar.gz",
.hash = "aws-0.0.1-SbsFcKVHCgDtvJHu64Qnd1Xn5hKjQ3njOe4io8mb16d6",
},
},
}

View file

@ -1453,7 +1453,7 @@ fn camelCaseComp(field: []const u8, key: []const u8, options: ParseOptions) !boo
if (utf8_source_key.nextCodepoint()) |codepoint| {
if (codepoint >= 'A' and codepoint <= 'Z') {
const allocator = options.allocator orelse return error.AllocatorRequired;
const source_key_camel_case = try allocator.dupeZ(u8, key);
const source_key_camel_case = try allocator.dupe(u8, key);
defer allocator.free(source_key_camel_case);
// First codepoint is uppercase Latin char, which is all we're handling atm
source_key_camel_case[0] = source_key_camel_case[0] + ('a' - 'A');
@ -1504,7 +1504,7 @@ fn snakeCaseComp(field: []const u8, key: []const u8, options: ParseOptions) !boo
// We now transform the key by lowercasing. We will only deal with Latin
var utf8_source_key = (std.unicode.Utf8View.init(key) catch unreachable).iterator();
const normalized_key = try allocator.dupeZ(u8, key);
const normalized_key = try allocator.dupe(u8, key);
defer allocator.free(normalized_key);
inx = 0;
while (utf8_source_key.nextCodepoint()) |codepoint| {
@ -1638,7 +1638,7 @@ fn parseInternal(comptime T: type, token: Token, tokens: *TokenStream, options:
else => return error.UnexpectedToken,
}
var r: T = undefined;
var fields_seen = [_]bool{false} ** structInfo.fields.len;
var fields_seen: [structInfo.fields.len]bool = @splat(false);
errdefer {
// TODO: why so high here? This was needed for ec2 describe instances
@setEvalBranchQuota(100000);

View file

@ -448,7 +448,7 @@ pub fn Request(comptime request_action: anytype) type {
T: type,
header_name: []const u8,
};
comptime var fields = [_]?HeaderInfo{null} ** std.meta.fields(@TypeOf(action.Response.http_header)).len;
comptime var fields: [std.meta.fields(@TypeOf(action.Response.http_header)).len]?HeaderInfo = @splat(null);
inline for (std.meta.fields(@TypeOf(action.Response.http_header)), 0..) |f, inx| {
fields[inx] = HeaderInfo{
.name = f.name,

View file

@ -244,7 +244,7 @@ fn parseInternal(comptime T: type, element: *xml.Element, options: ParseOptions)
},
.@"struct" => |struct_info| {
var r: T = undefined;
var fields_seen = [_]bool{false} ** struct_info.fields.len;
var fields_seen: [struct_info.fields.len]bool = @splat(false);
var fields_set: u64 = 0;
// errdefer {
// // TODO: why so high here? This was needed for ec2 describe instances