Commit graph

19 commits

Author SHA1 Message Date
1e24b3a87c
zig 0.12.0: rework build interface to match a much improved package manager 2024-05-06 13:54:47 -07: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
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
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
346bd1d084
allow helpers to actually compile
All checks were successful
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
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m16s
2023-10-21 13:20:49 -07:00
ee5dd01e73
make sure steps are in alphabetical order 2023-10-20 22:59:34 -07:00
0c6a9366f5
cloudflare fixes
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m32s
2023-10-20 22:28:38 -07:00
cbe8b6dd1f
initial commit: cloudflare
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m39s
2023-10-20 21:58:34 -07:00
72d143c976
new module approach for flexilib
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m19s
2023-10-05 15:54:59 -07:00
ff691a4391
change method for finding the source location for the module
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m28s
2023-09-21 09:42:21 -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
3b97559b5d
removing bad assumption 2023-09-18 15:46:23 -07:00
5edd7ab733
add flexilib implementation 2023-09-18 14:52:42 -07:00
1014f89d3d
solve problem of finding paths for anonymous modules 2023-09-18 11:37:30 -07:00
b313be2476
add standalone web server support 2023-09-16 10:33:29 -07:00
2fb551c77d
build type based on provider, detect properly 2023-09-16 09:20:11 -07:00
5bb9f3de07
it is alive 2023-09-16 08:14:11 -07:00