Skip to content

Commit 7f2cd5c

Browse files
feat(vm): Add support for WASM
BREAKING CHANGE: Removes support for old opcodes Squashed commits: [4ebf0e3] WIP: Convert timestamp to hrtime [1912f63] WIP: Add support for caching prepared WASM [ed045c7] WIP: Add extra debugging logs [60c2707] WIP: Implemented BigDecimal for combining numbers [9749435] WIP: Add support for logging errors [41b01fb] WIP: Add support for setting headers and method in a http_call [e652060] WIP: Fetching API data through WASM [0ed74e0] WIP: Sending commands from the worker back to the master [5c62c60] WIP: Implementing function calling [da679b2] chore(build): Working version of workers + TypeScript + Webpack [8920f06] WIP: On node/browser building with webpack [f56d907] WIP: WASM implementation
1 parent 1102e01 commit 7f2cd5c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+7274
-10239
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ dist
103103

104104
# TernJS port file
105105
.tern-port
106+
107+
target

examples/simple-url-call/Cargo.lock

Lines changed: 316 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/simple-url-call/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "simple-url-call"
3+
version = "0.1.0"
4+
authors = ["Franklin Waller <[email protected]>"]
5+
edition = "2018"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[profile.release]
10+
lto = true
11+
opt-level = 'z'
12+
13+
[dependencies]
14+
serde_json = "1.0"
15+
serde = { version = "1.0", features = ["derive"] }
16+
jsonpath-rust = "0.1.0"
17+
bigdecimal = "0.3.0"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cargo build --target wasm32-wasi --release
2+
wasm-opt -Oz -o ./target/wasm32-wasi/release/basic-fetch.wasm ./target/wasm32-wasi/release/simple-url-call.wasm
3+
cp ./target/wasm32-wasi/release/basic-fetch.wasm ../../test/wasm

0 commit comments

Comments
 (0)