update example for std.Io interface
Some checks failed
aws-zig nightly build / build-zig-nightly (push) Failing after 37s
Some checks failed
aws-zig nightly build / build-zig-nightly (push) Failing after 37s
This commit is contained in:
parent
d400e50a9c
commit
aec39b2103
2 changed files with 6 additions and 3 deletions
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.aws = .{
|
.aws = .{
|
||||||
.url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/10a0e0ab99e2beb084b8299ca198029d911b6961/10a0e0ab99e2beb084b8299ca198029d911b6961nightly-zig-with-models.tar.gz",
|
.url = "https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/d400e50a9c0257b44e68f9b6474ff0e5193b7e9f/d400e50a9c0257b44e68f9b6474ff0e5193b7e9fnightly-zig-with-models.tar.gz",
|
||||||
.hash = "aws-0.0.1-SbsFcLgRCgAHf5jTxnTcfY7-hQAGX7tjBmjqp3E2ttLG",
|
.hash = "aws-0.0.1-SbsFcMsaCgAjwIAbxiCn2rIC1l4vGHDzC4_n70x2cRgs",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,10 @@ pub fn main() anyerror!void {
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
// var client = aws.Client.init(allocator, .{ .proxy = proxy });
|
// var client = aws.Client.init(allocator, .{ .proxy = proxy });
|
||||||
var client = aws.Client.init(allocator, .{});
|
var threaded: std.Io.Threaded = .init(allocator);
|
||||||
|
defer threaded.deinit();
|
||||||
|
const io = threaded.io();
|
||||||
|
var client = aws.Client.init(allocator, .{ .io = io });
|
||||||
defer client.deinit();
|
defer client.deinit();
|
||||||
|
|
||||||
const options = aws.Options{
|
const options = aws.Options{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue