zig 0.12.0: add stub for awslambda (see note)

The new version of awslambda will utilize the lambda_zig project in place. It will strictly
be glue between universal lambda and aws lambda handler definitions much the same way
as flexilib
This commit is contained in:
Emil Lerch 2024-05-06 13:57:47 -07:00
parent 1e24b3a87c
commit 73fa9791d3
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 7 additions and 1 deletions

6
src/awslambda.zig Normal file
View File

@ -0,0 +1,6 @@
const std = @import("std");
const lambda_zig = @import("lambda-zig");
pub fn run() !void {
lambda_zig.run();
}

View File

@ -7,7 +7,7 @@ const log = std.log.scoped(.universal_lambda);
const runFn = blk: { const runFn = blk: {
switch (build_options.build_type) { switch (build_options.build_type) {
.awslambda => break :blk @import("lambda.zig").run, .awslambda => break :blk @import("awslambda.zig").run,
.standalone_server => break :blk runStandaloneServerParent, .standalone_server => break :blk runStandaloneServerParent,
// In the case of flexilib, our root module is actually flexilib.zig // In the case of flexilib, our root module is actually flexilib.zig
// so we need to import that, otherwise we risk the dreaded "file exists // so we need to import that, otherwise we risk the dreaded "file exists