Skip to content

Commit b625b02

Browse files
committed
Fixing wasm-bindgen benchmark
1 parent 634423a commit b625b02

16 files changed

+101
-269
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
js_framework_benchmark_wasm_bindgen.*
2-
js_framework_benchmark_wasm_bindgen_bg.*
1+
node_modules
2+
/target
3+
/pkg
4+
/wasm-pack.log
5+
/yarn-error.log

frameworks/keyed/wasm-bindgen/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ edition = "2018"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
wasm-bindgen = "0.2.31"
11-
js-sys = "0.3.5"
10+
wasm-bindgen = "0.2.47"
11+
js-sys = "0.3.24"
1212

1313
[dependencies.web-sys]
14-
version = "0.3.4"
14+
version = "0.3.24"
1515
features = [
1616
'Document',
1717
'DomTokenList',
@@ -25,6 +25,4 @@ features = [
2525

2626
[profile.release]
2727
lto = true
28-
opt-level = "z"
29-
debug = false
3028
panic = "abort"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Because of the heavy amount of Rust dependencies, this example is pre-compiled, so you don't need to compile anything.
2+
3+
However, if you do want to compile it, you will need the following:
4+
5+
* [Rust](https://www.rust-lang.org/tools/install)
6+
7+
* [wasm-pack](https://rustwasm.github.io/wasm-pack/)
8+
9+
After installing those, run these commands:
10+
11+
```
12+
npm install
13+
npm run build-prod-force
14+
```

frameworks/keyed/wasm-bindgen/build.js

Lines changed: 0 additions & 187 deletions
This file was deleted.

frameworks/keyed/wasm-bindgen/bundled-dist/1.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.

frameworks/keyed/wasm-bindgen/bundled-dist/index.js

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

frameworks/keyed/wasm-bindgen/bundled-dist/main.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)