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

feat: add support for ECMAScript modules in the JavaScript kit #236

Merged
merged 8 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ jobs:
- name: Build wws on release mode
run: cargo build --verbose --release
- name: Test
run: cargo test --workspace --exclude wasm-workers-quick-js-engine -- --show-output
run: cargo test --workspace -- --show-output
194 changes: 2 additions & 192 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ members = [
"crates/worker",
"kits/rust",
"kits/rust/worker",
"kits/javascript",
]
# Exclude examples
exclude = [
Expand All @@ -71,6 +70,8 @@ exclude = [
"examples/rust-pdf-create",
"examples/rust-wasi-nn",
"examples/rust-wasi-nn-preload",
# It uses incompatible crate versions
"kits/javascript",
]

[workspace.dependencies]
Expand Down
21 changes: 21 additions & 0 deletions examples/js-modules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# JavaScript modules example

Run a JavaScript that exports the application in Wasm Workers Server.

## Prerequisites

* Wasm Workers Server (wws):

```shell-session
curl -fsSL https://workers.wasmlabs.dev/install | bash
```

## Run

```shell-session
wws https://github.com/vmware-labs/wasm-workers-server.git -i --git-folder "examples/js-modules"
```

## Resources

* [JavaScript documentation](https://workers.wasmlabs.dev/docs/languages/javascript)
Loading