update example
This commit is contained in:
parent
d697df6fd6
commit
242d4b5f44
2 changed files with 7 additions and 11 deletions
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
.dependencies = .{
|
||||
.aws = .{
|
||||
.url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/e41f98b389539c8bc6b1a231d25e2980318e5ef4/e41f98b389539c8bc6b1a231d25e2980318e5ef4-with-models.tar.gz",
|
||||
.hash = "aws-0.0.1-SbsFcI0RCgBdf1nak95gi1kAtI6sv3Ntb7BPETH30fpS",
|
||||
.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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,11 @@ pub const std_options: std.Options = .{
|
|||
},
|
||||
};
|
||||
|
||||
pub fn main() anyerror!void {
|
||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
defer _ = gpa.deinit();
|
||||
const allocator = gpa.allocator();
|
||||
pub fn main(init: std.process.Init) anyerror!void {
|
||||
const allocator = init.gpa;
|
||||
const io = init.io;
|
||||
var stdout_buffer: [1024]u8 = undefined;
|
||||
var stdout_raw = std.fs.File.stdout().writer(&stdout_buffer);
|
||||
var stdout_raw = std.Io.File.stdout().writer(io, &stdout_buffer);
|
||||
const stdout = &stdout_raw.interface;
|
||||
defer stdout.flush() catch unreachable;
|
||||
|
||||
|
|
@ -28,10 +27,7 @@ pub fn main() anyerror!void {
|
|||
// };
|
||||
//
|
||||
// var client = aws.Client.init(allocator, .{ .proxy = proxy });
|
||||
var threaded: std.Io.Threaded = .init(allocator);
|
||||
defer threaded.deinit();
|
||||
const io = threaded.io();
|
||||
var client = aws.Client.init(allocator, .{ .io = io });
|
||||
var client = aws.Client.init(allocator, .{ .io = io, .map = init.environ_map });
|
||||
defer client.deinit();
|
||||
|
||||
const options = aws.Options{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue