Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Zig support #144 #196

Merged
merged 29 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d01b8c1
feat: add support for zig (#144)
voigt Aug 11, 2023
bc39e7e
add wasi_exec_model reactor
voigt Aug 14, 2023
df715e8
cleanup
voigt Aug 14, 2023
61bc643
use custom request/response entities
voigt Aug 15, 2023
04610ff
prepare kv example
voigt Aug 15, 2023
a2a588f
make kv working
voigt Aug 15, 2023
a5b7ab2
add params and env
voigt Aug 15, 2023
0835de3
add example zig-basic
voigt Aug 17, 2023
e2451fc
add example zig-kv
voigt Aug 17, 2023
13405ad
add example zig-params
voigt Aug 17, 2023
d67dad2
add example zig-envs
voigt Aug 17, 2023
7844a39
add zig docs to example README
voigt Aug 17, 2023
1098a61
add .gitignore to ignore zig build and cache directories
voigt Aug 17, 2023
5e92d99
rm dev files
voigt Aug 17, 2023
6d73454
cleanup worker
voigt Aug 17, 2023
a317655
add docs for zig language
voigt Aug 17, 2023
454a022
add language compatibility information
voigt Aug 17, 2023
d987d1d
add examples to docs
voigt Aug 17, 2023
9cbcd2a
add utf8 validity check
voigt Aug 24, 2023
4d48382
add corrections to docs
voigt Aug 31, 2023
ce2a02a
rename writeHeader to setStatus
voigt Aug 31, 2023
e12feff
rm zig-envs
voigt Aug 31, 2023
4a942f2
use use zig instead of c for zig doc code samples
voigt Aug 31, 2023
697b72b
rename s/data/body to be consistent with other languages
voigt Aug 31, 2023
c6010f7
rename s/bash/shell-session
voigt Sep 1, 2023
0c206c9
add info for RequestAndOutput wrapper struct
voigt Aug 31, 2023
52e0940
fix read input until EOF
voigt Sep 1, 2023
0cd0ae4
Revert "use use zig instead of c for zig doc code samples"
voigt Sep 1, 2023
e3db489
fix basic example
voigt Sep 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ target
!tests/**/*.wasm
examples/*.toml
.DS_Store
.wws
.wws
**/zig-cache
**/zig-out
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Wasm Workers Server focuses on simplicity. We want you to run workers (written i
| Go | ✅ | No | [#95](https://github.com/vmware-labs/wasm-workers-server/issues/95) |
| Ruby | ✅ | [Yes](https://workers.wasmlabs.dev/docs/languages/ruby#installation) | [#63](https://github.com/vmware-labs/wasm-workers-server/issues/63) |
| Python | ✅ | [Yes](https://workers.wasmlabs.dev/docs/languages/python#installation) | [#63](https://github.com/vmware-labs/wasm-workers-server/issues/63) |
| Zig | 🚧 | No | [#144](https://github.com/vmware-labs/wasm-workers-server/issues/144) |
| Zig | | No | [#144](https://github.com/vmware-labs/wasm-workers-server/issues/144) |
| PHP | 🚧 | No | [#100](https://github.com/vmware-labs/wasm-workers-server/issues/100) |

To get more information about multi-language support in Wasm Workers Server, [check our documentation](https://workers.wasmlabs.dev/docs/languages/introduction).
Expand Down
1 change: 1 addition & 0 deletions docs/docs/features/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ The following table shows the language compatibility for the different worker fu
| Go | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ruby | ✅ | ✅ | ✅ | ✅ | ❌ |
| Python | ✅ | ✅ | ✅ | ✅ | ❌ |
| Zig | ✅ | ❌ | ✅ | ✅ | ❌ |
2 changes: 2 additions & 0 deletions docs/docs/features/dynamic-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Check these guides to understand how to read parameters in the different support
* [Dynamic routes in Python](../languages/python.md#dynamic-routes)
* [Dynamic routes in Ruby](../languages/ruby.md#dynamic-routes)
* [Dynamic routes in Go](../languages/go.md#dynamic-routes)
* [Dynamic routes in Zig](../languages/zig.md#dynamic-routes)

## Dynamic routes and folders

Expand Down Expand Up @@ -59,3 +60,4 @@ In this case, the `./[resource]/[id]/show.js` worker replies to URLs like `/arti
| Go | ✅ |
| Ruby | ✅ |
| Python | ✅ |
| Zig | ✅ |
1 change: 1 addition & 0 deletions docs/docs/features/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ This feature allows you to configure environment variables dynamically.
| Go | ✅ |
| Ruby | ✅ |
| Python | ✅ |
| Zig | ❌ |
voigt marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions docs/docs/features/http-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Check these guides to perform HTTP requests in the different supported languages
| Go | ✅ |
| Ruby | ❌ |
| Python | ❌ |
| Zig | ❌ |
voigt marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions docs/docs/features/key-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The worker may access all the data and perform changes over it. Then, a new K/V
* [Add a K/V store to Python workers](../languages/python.md#add-a-key--value-store)
* [Add a K/V store to Ruby workers](../languages/ruby.md#add-a-key--value-store)
* [Add a K/V store to Go workers](../languages/go.md#add-a-key--value-store)
* [Add a K/V store to Zig workers](../languages/zig.md#add-a-key--value-store)
ereslibre marked this conversation as resolved.
Show resolved Hide resolved

## Limitations

Expand All @@ -35,3 +36,4 @@ A known limitation of the snapshot approach is the data override when concurrent
| Go | ✅ |
| Ruby | ✅ |
| Python | ✅ |
| Zig | ✅ |
ereslibre marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions docs/docs/features/mount-folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ Note that those folders may include files that `wws` recognizes as workers (like
| Go | ✅ |
| Ruby | ✅ |
| Python | ✅ |
| Zig | ✅ |
Loading