authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 23:46:54 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 23:46:54 -07:00
logc624df0fa6ec796d40e125b817b938b61224e8fd
tree86cc39cefa4dd3cfc810e029470e59be5b553d0f
parent234e63d5a5061c63f79d5877650c1b1d80c58b89
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


3 files changed, 3 insertions(+), 3 deletions(-)

README.md+1-1
...@@ -3,7 +3,7 @@...@@ -3,7 +3,7 @@
3![loc](https://sloc.xyz/github/nektro/zig-ulid)3![loc](https://sloc.xyz/github/nektro/zig-ulid)
4[![license](https://img.shields.io/github/license/nektro/zig-ulid.svg)](https://github.com/nektro/zig-ulid/blob/master/LICENSE)4[![license](https://img.shields.io/github/license/nektro/zig-ulid.svg)](https://github.com/nektro/zig-ulid/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)6[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
88
9A binary implementation of ULID in Zig.9A binary implementation of ULID in Zig.
base32.zig+1-1
...@@ -6,7 +6,7 @@ const string = []const u8;...@@ -6,7 +6,7 @@ const string = []const u8;
6const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";6const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
77
8pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 {8pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 {
9 var list = std.ArrayList(u5).init(alloc);9 var list = std.array_list.Managed(u5).init(alloc);
10 errdefer list.deinit();10 errdefer list.deinit();
1111
12 for (input) |c| {12 for (input) |c| {
ulid.zig+1-1
...@@ -50,7 +50,7 @@ pub const ULID = struct {...@@ -50,7 +50,7 @@ pub const ULID = struct {
50 }50 }
5151
52 pub fn toString(self: ULID, alloc: std.mem.Allocator) !BaseType {52 pub fn toString(self: ULID, alloc: std.mem.Allocator) !BaseType {
53 var res = try std.ArrayList(u8).initCapacity(alloc, 26);53 var res = try std.array_list.Managed(u8).initCapacity(alloc, 26);
54 defer res.deinit();54 defer res.deinit();
55 try res.appendSlice(&self.bytes());55 try res.appendSlice(&self.bytes());
56 return res.toOwnedSlice();56 return res.toOwnedSlice();