diff --git a/build.zig.zon b/build.zig.zon index 3fcf39a..de5eaae 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.4.0", .fingerprint = 0xdc70f8287a69c300, - .minimum_zig_version = "0.15.0", + .minimum_zig_version = "0.16.0-dev.2145+ec25b1384", .dependencies = .{}, diff --git a/demo/debug.zig b/demo/debug.zig index eeda369..b55e44c 100644 --- a/demo/debug.zig +++ b/demo/debug.zig @@ -9,7 +9,7 @@ pub fn main() void { } fn handler(ctx: lambda.Context, event: []const u8) ![]const u8 { - var str: std.io.Writer.Allocating = try .initCapacity(ctx.arena, 1024); + var str: std.Io.Writer.Allocating = try .initCapacity(ctx.arena, 1024); const cfg = ctx.config; try str.writer.print( diff --git a/demo/url_buffer.zig b/demo/url_buffer.zig index e338fc8..de41980 100644 --- a/demo/url_buffer.zig +++ b/demo/url_buffer.zig @@ -90,7 +90,7 @@ fn homePage(ctx: lambda.Context) ![]const u8 { /// The `url.Request` contains both the HTTP request and additional AWS metadata. fn ipAddrPage(ctx: lambda.Context, req: lambda.url.Request) ![]const u8 { // Generate dynamic HTML content, note the usage of an arena allocator. - var html: std.io.Writer.Allocating = .init(ctx.arena); + var html: std.Io.Writer.Allocating = .init(ctx.arena); try html.writer.writeAll(global_nav); if (req.request_context.http.source_ip) |addr| { @@ -110,7 +110,7 @@ fn ipAddrPage(ctx: lambda.Context, req: lambda.url.Request) ![]const u8 { /// Use a parsed query parameter provided by the decoded request to greet the user. fn greetPage(ctx: lambda.Context, req: lambda.url.Request) ![]const u8 { - var html: std.io.Writer.Allocating = .init(ctx.arena); + var html: std.Io.Writer.Allocating = .init(ctx.arena); try html.writer.writeAll(global_nav); @@ -165,7 +165,7 @@ fn storagePage(ctx: lambda.Context, req: lambda.url.Request) ![]const u8 { } // Encode the cookie value - var new_cookie: std.io.Writer.Allocating = .init(ctx.arena); + var new_cookie: std.Io.Writer.Allocating = .init(ctx.arena); errdefer new_cookie.deinit(); try new_cookie.writer.writeAll("store="); try std.base64.standard.Encoder.encodeWriter(&new_cookie.writer, value); @@ -176,7 +176,7 @@ fn storagePage(ctx: lambda.Context, req: lambda.url.Request) ![]const u8 { } // Render a form to display and update the stored value. - var html: std.io.Writer.Allocating = .init(ctx.arena); + var html: std.Io.Writer.Allocating = .init(ctx.arena); try html.writer.writeAll(global_nav); try html.writer.print( \\