dcf00d8460
rework context
...
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
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
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
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
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
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
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
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m39s
2023-10-22 12:32:11 -07:00
ffc584c5f2
add backtrace details for debugging
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m25s
2023-10-22 12:23:14 -07:00
d027c456c4
put wasmtime in path
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m33s
2023-10-22 12:22:35 -07:00
9ac9dc6e59
add wasmtime to build
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m27s
2023-10-22 12:08:18 -07:00
518da5e476
ignore test that seems to leak only under wasi (hmm?)
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m20s
2023-10-22 12:04:03 -07:00
1d0da7c80f
add helper tests/change header helper to get all headers
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m31s
2023-10-22 11:53:51 -07:00
346bd1d084
allow helpers to actually compile
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m39s
2023-10-21 14:27:08 -07:00
804c797394
add a universal_lambda_helpers module to compilation unit
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m16s
2023-10-21 13:20:49 -07:00
5b4bf37424
add helpers from example as an optional module for use downstream
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m18s
2023-10-21 13:08:06 -07:00
e6ac41f4df
update README
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-10-20 23:06:13 -07:00
ee5dd01e73
make sure steps are in alphabetical order
2023-10-20 22:59:34 -07:00
70b0fda03b
append ".wasm" to the compile exe name for Cloudflare
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m23s
2023-10-20 22:54:08 -07:00
e7a6aa5f04
allow cloudflare to be used for zig build
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m50s
2023-10-20 22:44:30 -07:00
843bc56558
use final_script in deployment
2023-10-20 22:44:12 -07:00
0c6a9366f5
cloudflare fixes
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m32s
2023-10-20 22:28:38 -07:00
88eb415a1e
cloudflare deploy not designed for wasi
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m30s
2023-10-20 22:04:41 -07:00
cbe8b6dd1f
initial commit: cloudflare
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m39s
2023-10-20 21:58:34 -07:00
5405b9eeff
skip lambda test decls under wasi
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m27s
2023-10-06 12:09:49 -07:00
668debd29d
initial WASI support
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m36s
2023-10-06 11:48:19 -07:00
ce44fd567f
update README
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m19s
2023-10-05 16:23:44 -07:00
ea730c50a5
update flexlib dependency
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m18s
2023-10-05 15:59:54 -07:00
72d143c976
new module approach for flexilib
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m19s
2023-10-05 15:54:59 -07:00
e5396cb0e5
add flexilib-interface module for flexilib client builds
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-10-05 15:31:11 -07:00
30d27e3002
use flexilib interface module directly
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m23s
2023-10-04 06:55:25 -07:00
542cf44bf4
should be ZigRequest/ZigResponse
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m32s
2023-10-03 15:18:31 -07:00
54740a7022
add context for current providers
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m29s
2023-10-03 13:52:47 -07:00
5edaacde07
add target to flexilib interface
2023-10-03 13:44:47 -07:00
3088af4219
allow "zig build" to work (although it will not do much)
2023-10-03 13:44:03 -07:00
fc0f9a0c76
add README
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m30s
2023-09-21 10:45:06 -07:00
ff691a4391
change method for finding the source location for the module
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-09-21 09:42:21 -07:00
88ff6bf9c6
add configureBuild in build.zig
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m18s
2023-09-20 15:08:33 -07:00
87b83ee084
initial CI workflow
2023-09-20 14:22:33 -07:00
0bf154f87a
allow compilation under 32 bit
2023-09-20 14:22:09 -07:00
992c1dd675
remove debugging output
2023-09-20 14:21:49 -07:00
6c205026c8
make lambda tests pass
2023-09-20 14:21:18 -07:00
31321a4871
enable tests on lambda.zig
2023-09-20 14:20:39 -07:00
aff5196dbb
update build.zig to allow testing
2023-09-20 14:20:05 -07:00
97d976eebd
allow universal_lambda_build.zig to be used by its own project
2023-09-20 14:19:22 -07:00
db061ecbdc
add flexilib support
2023-09-20 10:21:32 -07:00
d23dbd126b
add context/adjust how body is read
2023-09-18 15:49:25 -07:00
3b97559b5d
removing bad assumption
2023-09-18 15:46:23 -07:00
5edd7ab733
add flexilib implementation
2023-09-18 14:52:42 -07:00