Skip to content

Commit 0aa19af

Browse files
committed
Merge remote-tracking branch 'upstream/master' into prototype-inheritance
2 parents 3841ba9 + 1f39a30 commit 0aa19af

File tree

39 files changed

+43
-39
lines changed

39 files changed

+43
-39
lines changed

_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server -p"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"html-webpack-plugin": "^3.2.0",
99
"text-encoding": "^0.7.0",
1010
"webpack": "^4.29.4",

examples/add/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
const rust = import('./pkg/add');
3+
const rust = import('./pkg');
44
rust
55
.then(m => alert('1 + 2 = ' + m.add(1, 2)))
66
.catch(console.error);

examples/add/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server -p"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"html-webpack-plugin": "^3.2.0",
99
"text-encoding": "^0.7.0",
1010
"webpack": "^4.29.4",

examples/canvas/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/canvas')
3+
import('./pkg')
44
.catch(console.error);

examples/canvas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/char/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-unused-vars */
22
import { chars } from './chars-list.js';
3-
let imp = import('./pkg/char');
3+
let imp = import('./pkg');
44
let mod;
55

66
let counters = [];

examples/char/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/closures/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/closures')
3+
import('./pkg')
44
.catch(console.error);

examples/closures/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/console_log/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/console_log')
3+
import('./pkg')
44
.catch(console.error);

examples/console_log/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/dom/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/dom')
3+
import('./pkg')
44
.catch(console.error);

examples/dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/rust_duck_typed_interfaces');
3+
import('./pkg');

examples/duck-typed-interfaces/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/fetch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const rust = import('./pkg/fetch');
1+
const rust = import('./pkg');
22

33
rust
44
.then(m => {

examples/fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/guide-supported-types-examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/hello_world/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Note that a dynamic `import` statement here is required due to
2-
// webpack/webpack#6615, but in theory `import { greet } from './pkg/hello_world';`
2+
// webpack/webpack#6615, but in theory `import { greet } from './pkg';`
33
// will work here one day as well!
4-
const rust = import('./pkg/hello_world');
4+
const rust = import('./pkg');
55

66
rust
77
.then(m => m.greet('World!'))

examples/hello_world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/import_js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./crate/pkg/import_js')
3+
import('./crate/pkg')
44
.catch(console.error);

examples/import_js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/julia_set/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import('./pkg/julia_set')
1+
import('./pkg')
22
.then(wasm => {
33
const canvas = document.getElementById('drawing');
44
const ctx = canvas.getContext('2d');

examples/julia_set/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/paint/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/wasm_bindgen_paint')
3+
import('./pkg')
44
.catch(console.error);

examples/paint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/performance/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/performance')
3+
import('./pkg')
44
.catch(console.error);

examples/performance/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/raytrace-parallel/src/pool.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Silences warnings from the compiler about Work.func and child_entry_point
2+
// being unused when the target is not wasm.
3+
#![cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]
4+
15
//! A small module that's intended to provide an example of creating a pool of
26
//! web workers which can be used to execute `rayon`-style work.
37
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/request_animation_frame')
3+
import('./pkg')
44
.catch(console.error);

examples/request-animation-frame/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/todomvc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
const rust = import('./pkg/todomvc');
3+
const rust = import('./pkg');
44

55
rust
66
.then(m => m.run())

examples/todomvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/wasm-in-wasm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/wasm_in_wasm')
3+
import('./pkg')
44
.catch(console.error);

examples/wasm-in-wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/webaudio/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import('./pkg/webaudio')
1+
import('./pkg')
22
.then(rust_module => {
33
let fm = null;
44

examples/webaudio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/webgl/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/webgl')
3+
import('./pkg')
44
.catch(console.error);

examples/webgl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

0 commit comments

Comments
 (0)