Commit Graph

103 Commits

Author SHA1 Message Date
c77502d90f
disable awslambda for WASI tests
All checks were successful
Generic zig build / build (push) Successful in 3m3s
2024-05-10 13:56:48 -07:00
e963ed068a
move build to github directory
Some checks failed
Generic zig build / build (push) Failing after 2m41s
2024-05-10 13:46:19 -07:00
578c9cd167
move CI to closely match standard 2024-05-10 13:45:32 -07:00
5cad3926d8
zig 0.12.0: make all dependencies globally accessible
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m11s
2024-05-10 13:36:27 -07:00
c32546051d
zig 0.12.0: add standalone_server runtime code 2024-05-10 13:26:38 -07:00
7919dd6160
zig 0.12.0: update readme 2024-05-10 13:24:44 -07:00
9b4e1cb5bc
zig 0.12.0: connect aws lambda 2024-05-10 12:37:11 -07:00
4c43842ef3
zig 0.12.0: move standalone server runtime and enable tests 2024-05-08 10:46:45 -07:00
c3e1ffc2ef
zig 0.12.0: bring all of runStandaloneServer under test 2024-05-08 10:23:40 -07:00
1053c8f002
zig 0.12.0: need to dupe the headers 2024-05-06 16:20:03 -07:00
17661b9da2
zig 0.12.0: add test-native step/re-enable lib (failing) 2024-05-06 15:39:08 -07:00
1f58fbc743
zig 0.12.0: update build.zig.zon, local paths for now 2024-05-06 15:32:00 -07:00
e8430cb47a
zig 0.12.0: re-enable exe tests 2024-05-06 15:29:18 -07:00
581c3de9ca
zig 0.12.0: upgrade flexilib runtime 2024-05-06 13:59:41 -07:00
73fa9791d3
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
2024-05-06 13:57:47 -07:00
1e24b3a87c
zig 0.12.0: rework build interface to match a much improved package manager 2024-05-06 13:54:47 -07:00
9606e236a0
zig 0.12.0: remove another package file 2024-05-06 13:26:24 -07:00
6242641fa4
zig 0.12.0: upgrade universal_lambda 2024-05-06 13:24:13 -07:00
30a4e24656
zig 0.12.0: upgrade standalone_server_build 2024-05-06 13:22:57 -07:00
d72b5f6b6f
zig 0.12.0: update interface for headergate 2024-05-06 13:22:23 -07:00
decb2d34af
zig 0.12.0: upgrade console.zig/refactor headers 2024-05-06 12:16:06 -07:00
a962e05d82
zig 0.12.0: remove all files that should come from dependent packages 2024-05-06 12:15:29 -07:00
5f1b1a52be
add resource usage stats when built in debug mode
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m6s
2024-02-25 17:04:08 -08:00
31b363bc0d
re-enable lib tests
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 3m45s
2024-01-09 14:42:18 -08:00
098ceffb41
try wasmtime again
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m46s
2024-01-09 14:34:49 -08:00
dd4935b5e5
move cross target testing into zig build test
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m58s
2024-01-09 14:28:20 -08:00
4c987d0959
fix flexilib build
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m43s
2023-11-17 12:26:48 -08:00
e5a1099f74
update build options module name and readme
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-10-28 15:51:41 -07:00
0736660669
adjust test build to deal with library-based systems
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m33s
2023-10-28 08:31:12 -07:00
90f1461207
eliminate small supervisor memory leak when handler panics
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m53s
2023-10-26 13:40:08 -07:00
9941e0cebb
new plan for process supervision
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s
2023-10-25 17:34:15 -07:00
8227857563
need arg0 to be exe name
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s
2023-10-25 17:27:04 -07:00
edeed81e06
test of panic handling in server
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m34s
2023-10-25 17:24:15 -07:00
bebf1b9dfa
add commented windows build (currently fails due to env vars)
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m52s
2023-10-25 12:00:35 -07:00
a810ce2105
fix 32 bit linux arm
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m58s
2023-10-25 10:19:51 -07:00
95b5394aa8
fix standalone server test
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m31s
2023-10-25 09:53:30 -07:00
e84f6e7efe
get standalone server under (failing) test 2023-10-25 09:46:52 -07:00
878f62ef0a
add proxy support to Cloudflare 2023-10-25 09:19:06 -07:00
02df7a1c75
change error name to be less confusing 2023-10-25 09:18:58 -07:00
5376b6a725
fix downstream build issues
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m37s
2023-10-25 00:14:33 -07:00
cbcdaf5bd7
remove dummy test in cloudflaredeploy.zig
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m49s
2023-10-24 23:58:12 -07:00
dcf00d8460
rework context
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m50s
This commit is a significant refactor that fixes a number of things.

1. Replaces the optional helpers import (which was always weird) with a
   mandatory interface import on behalf of the application. This is
   actually a good thing as it enables all things below.
2. Removes the severely awkward union that was the lambda context. Now,
   no matter how your handler runs, a single object with everything you
   need is fully populated and (nearly always) works as you would
   expect. There is a slight exception to this with AWS Lambda that is
   related to the service itself. It is also possible that not
   everything is passed in correctly for Cloudflare, which, if true,
   will be addressed later.
3. Allows writes to the context object. These will be added to the
   output, but is implementation dependent, and I'm not 100% sure I've
   got it right yet, but the infrastructure is there.
4. Allows proper tests throughout this project.
5. Allows proper tests in the application too.
6. Removes the need for the handler to be public under flexlib. Flexilib
   handler registration now works just like everything else. Note,
   however, that flexilib is unique in that your handler registration
   function will return before the program ends. If this is important
   for resource cleanup, @import("build_options").build_type is your
   friend.
7. Request method can now be passed into console applications using -m
   or --method
2023-10-24 23:45:12 -07:00
2915453c1b
add writer helper
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m44s
2023-10-24 12:17:42 -07:00
6c89380fea
address null reference on AWS
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m32s
2023-10-23 14:05:44 -07:00
983a1a6649
fix flexilib interface 2023-10-23 13:55:36 -07:00
05dd8b7e06
support -u/--url command line args to determine target
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m0s
2023-10-23 13:45:17 -07:00
29687e1440
update README that main should return !u8
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m43s
2023-10-23 12:55:28 -07:00
47e4b0d54c
allow handler more control in status reporting
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m46s
2023-10-23 12:49:18 -07:00
d8b5366515
return rest instead of next so values with = works
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s
2023-10-22 12:50:21 -07:00
33cb2589af
not sure why wasmtime is not working - disable foreign checks for now
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m39s
2023-10-22 12:32:11 -07:00