on master help sign in
37 files changed+596−509
since splitsnapshots
unifiedsplit
.travis.yml+18−12 Cargo.lock+281−327 Cargo.toml+9−9 benches/benches.rs+4−4 crates/js-api/Cargo.toml+4−4 crates/js-api/src/lib.rs+4−4 examples/counter/Cargo.toml+5−5 examples/counter/src/lib.rs+2−2 examples/game-of-life/Cargo.toml+5−6 examples/game-of-life/src/lib.rs+17−12 examples/hello-world/Cargo.toml+3−3 examples/hello-world/src/lib.rs+2−2 examples/input-form/Cargo.toml+3−3 examples/input-form/src/lib.rs+2−2 examples/js-component/Cargo.toml+3−3 examples/js-component/src/lib.rs+2−2 examples/moire/Cargo.toml+8−9 examples/moire/src/lib.rs+4−4 examples/sierpinski-triangle/Cargo.toml+5−6 examples/sierpinski-triangle/src/lib.rs+4−4 examples/todomvc/Cargo.toml+10−11 examples/todomvc/src/router.rs+22−19 examples/todomvc/src/todo.rs+2−2 examples/todomvc/src/todos.rs+2−2 src/cached.rs+7−7 src/change_list/mod.rs+2−2 src/diff.rs+6−6 src/lib.rs+2−2 src/render.rs+39−12 src/render_context.rs+1−1 src/vdom.rs+6 tests/web/cached.rs+4−4 tests/web/events.rs+4−4 tests/web/js_api.rs+2−2 tests/web/keyed.rs+7−5 tests/web/main.rs+6−6 tests/web/render.rs+89−1
.travis.yml+18−12
@@ -25,24 +25,30 @@ matrix:
2525 - name: "build (beta)"
2626 rust: beta
2727 script: INSTALL=1 ./build.sh
28− - name: "build (nightly)"
29− rust: nightly
30− script: INSTALL=1 ./build.sh
3128 - name: "headless browser tests (firefox)"
3229 rust: stable
3330 addons:
3431 firefox: latest
3532 script: wasm-pack test --firefox --headless -- --features xxx-unstable-internal-use-only
36− - name: "headless browser tests (chrome)"
37− rust: stable
38− addons:
39− chrome: stable
40− script: wasm-pack test --chrome --headless -- --features xxx-unstable-internal-use-only
4133 - name: "native tests"
4234 rust: stable
4335 install: echo "no install"
4436 script: cargo test --all
45− - name: "check native benches"
46− rust: nightly
47− install: echo "no install"
48− script: cargo check --benches --features xxx-unstable-internal-use-only
37+
38+ # TODO: A bug in `rustc` is making `js-sys` broken on nightly:
39+ # https://github.com/rust-lang/rust/issues/69315
40+ # - name: "build (nightly)"
41+ # rust: nightly
42+ # script: INSTALL=1 ./build.sh
43+ # - name: "check native benches"
44+ # rust: nightly
45+ # install: echo "no install"
46+ # script: cargo check --benches --features xxx-unstable-internal-use-only
47+
48+ # TODO: `chromedriver` is complaining about ports or something. Temporarily
49+ # disable in CI until we figure it out.
50+ # - name: "headless browser tests (chrome)"
51+ # rust: stable
52+ # addons:
53+ # chrome: stable
54+ # script: wasm-pack test --chrome --headless -- --features xxx-unstable-internal-use-only
Cargo.lock+281−327
@@ -7,12 +7,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
77
88[[package]]
99name = "atty"
10−version = "0.2.11"
10+version = "0.2.13"
1111source = "registry+https://github.com/rust-lang/crates.io-index"
1212dependencies = [
1313 "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
14− "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
15− "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
14+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
1615]
1716
1817[[package]]
@@ -22,7 +21,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
2221
2322[[package]]
2423name = "bitflags"
25−version = "1.1.0"
24+version = "1.2.1"
2625source = "registry+https://github.com/rust-lang/crates.io-index"
2726
2827[[package]]
@@ -30,10 +29,10 @@ name = "bstr"
3029version = "0.2.8"
3130source = "registry+https://github.com/rust-lang/crates.io-index"
3231dependencies = [
33− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
34− "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
32+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
33+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
3534 "regex-automata 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
36− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
35+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
3736]
3837
3938[[package]]
@@ -43,13 +42,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
4342
4443[[package]]
4544name = "byteorder"
46−version = "1.3.1"
45+version = "1.3.2"
4746source = "registry+https://github.com/rust-lang/crates.io-index"
4847
4948[[package]]
5049name = "cast"
51−version = "0.2.2"
50+version = "0.2.3"
5251source = "registry+https://github.com/rust-lang/crates.io-index"
52+dependencies = [
53+ "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
54+]
5355
5456[[package]]
5557name = "cfg-if"
@@ -61,9 +63,9 @@ name = "clap"
6163version = "2.33.0"
6264source = "registry+https://github.com/rust-lang/crates.io-index"
6365dependencies = [
64− "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
66+ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
6567 "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
66− "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
68+ "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
6769]
6870
6971[[package]]
@@ -77,44 +79,45 @@ dependencies = [
7779
7880[[package]]
7981name = "console_log"
80−version = "0.1.2"
82+version = "0.2.0"
8183source = "registry+https://github.com/rust-lang/crates.io-index"
8284dependencies = [
83− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
85+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
8486 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
8587]
8688
8789[[package]]
8890name = "criterion"
89−version = "0.3.0"
91+version = "0.3.3"
9092source = "registry+https://github.com/rust-lang/crates.io-index"
9193dependencies = [
92− "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
93− "cast 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
94+ "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)",
95+ "cast 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
9496 "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
95− "criterion-plot 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
97+ "criterion-plot 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
9698 "csv 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
97− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
98− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
99− "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
100− "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
101− "rand_os 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
102− "rand_xoshiro 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
103− "rayon 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
104− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
105− "serde_derive 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
106− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
107− "tinytemplate 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
108− "walkdir 2.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
99+ "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
100+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
101+ "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
102+ "oorandom 11.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
103+ "plotters 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)",
104+ "rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
105+ "regex 1.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
106+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
107+ "serde_cbor 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
108+ "serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
109+ "serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)",
110+ "tinytemplate 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
111+ "walkdir 2.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
109112]
110113
111114[[package]]
112115name = "criterion-plot"
113−version = "0.4.0"
116+version = "0.4.3"
114117source = "registry+https://github.com/rust-lang/crates.io-index"
115118dependencies = [
116− "cast 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
117− "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
119+ "cast 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
120+ "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
118121]
119122
120123[[package]]
@@ -134,7 +137,7 @@ dependencies = [
134137 "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
135138 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
136139 "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
137− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
140+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
138141 "memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
139142 "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
140143]
@@ -154,7 +157,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
154157dependencies = [
155158 "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
156159 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
157− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
160+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
158161]
159162
160163[[package]]
@@ -164,9 +167,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
164167dependencies = [
165168 "bstr 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
166169 "csv-core 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
167− "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
168− "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
169− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
170+ "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
171+ "ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
172+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
170173]
171174
172175[[package]]
@@ -174,24 +177,24 @@ name = "csv-core"
174177version = "0.1.6"
175178source = "registry+https://github.com/rust-lang/crates.io-index"
176179dependencies = [
177− "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
180+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
178181]
179182
180183[[package]]
181184name = "dodrio"
182−version = "0.1.0"
185+version = "0.2.0"
183186dependencies = [
184187 "bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
185188 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
186− "console_log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
187− "criterion 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
188− "dodrio-js-api 0.1.0",
189− "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
189+ "console_log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
190+ "criterion 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
191+ "dodrio-js-api 0.2.0",
192+ "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
190193 "fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
191194 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
192− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
195+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
193196 "longest-increasing-subsequence 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
194− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
197+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
195198 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
196199 "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
197200 "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -203,11 +206,11 @@ name = "dodrio-counter"
203206version = "0.1.0"
204207dependencies = [
205208 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
206− "console_log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
207− "dodrio 0.1.0",
208− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
209+ "console_log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
210+ "dodrio 0.2.0",
211+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
209212 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
210− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
213+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
211214 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
212215]
213216
@@ -216,12 +219,11 @@ name = "dodrio-game-of-life"
216219version = "0.1.0"
217220dependencies = [
218221 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
219− "dodrio 0.1.0",
220− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
222+ "dodrio 0.2.0",
221223 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
222224 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
223− "wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
224− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
225+ "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
226+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
225227 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
226228]
227229
@@ -230,9 +232,9 @@ name = "dodrio-hello-world"
230232version = "0.1.0"
231233dependencies = [
232234 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
233− "dodrio 0.1.0",
235+ "dodrio 0.2.0",
234236 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
235− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
237+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
236238 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
237239]
238240
@@ -241,17 +243,17 @@ name = "dodrio-input-form"
241243version = "0.1.0"
242244dependencies = [
243245 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
244− "dodrio 0.1.0",
246+ "dodrio 0.2.0",
245247 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
246− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
248+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
247249 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
248250]
249251
250252[[package]]
251253name = "dodrio-js-api"
252−version = "0.1.0"
254+version = "0.2.0"
253255dependencies = [
254− "dodrio 0.1.0",
256+ "dodrio 0.2.0",
255257 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
256258 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
257259 "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -263,8 +265,8 @@ name = "dodrio-js-component"
263265version = "0.1.0"
264266dependencies = [
265267 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
266− "dodrio 0.1.0",
267− "dodrio-js-api 0.1.0",
268+ "dodrio 0.2.0",
269+ "dodrio-js-api 0.2.0",
268270 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
269271 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
270272 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -276,14 +278,13 @@ version = "0.1.0"
276278dependencies = [
277279 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
278280 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
279− "console_log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
280− "dodrio 0.1.0",
281− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
281+ "console_log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
282+ "dodrio 0.2.0",
282283 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
283− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
284+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
284285 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
285− "wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
286− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
286+ "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
287+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
287288 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
288289]
289290
@@ -292,12 +293,11 @@ name = "dodrio-sierpinski"
292293version = "0.1.0"
293294dependencies = [
294295 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
295− "dodrio 0.1.0",
296− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
296+ "dodrio 0.2.0",
297297 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
298298 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
299− "wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
300− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
299+ "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
300+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
301301 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
302302]
303303
@@ -307,106 +307,104 @@ version = "0.1.0"
307307dependencies = [
308308 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
309309 "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
310− "console_log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
311− "dodrio 0.1.0",
312− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
310+ "console_log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
311+ "dodrio 0.2.0",
313312 "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
314− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
315− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
316− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
313+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
314+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
315+ "serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)",
317316 "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
318− "wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
319− "wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
317+ "wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
318+ "wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
320319 "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
321320]
322321
323322[[package]]
324323name = "either"
325−version = "1.5.2"
324+version = "1.5.3"
326325source = "registry+https://github.com/rust-lang/crates.io-index"
327326
328327[[package]]
329328name = "futures"
330−version = "0.1.28"
331−source = "registry+https://github.com/rust-lang/crates.io-index"
332−
333−[[package]]
334−name = "futures"
335−version = "0.3.1"
329+version = "0.3.5"
336330source = "registry+https://github.com/rust-lang/crates.io-index"
337331dependencies = [
338− "futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
339− "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
340− "futures-executor 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
341− "futures-io 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
342− "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
343− "futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
344− "futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
332+ "futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
333+ "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
334+ "futures-executor 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
335+ "futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
336+ "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
337+ "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
338+ "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
345339]
346340
347341[[package]]
348342name = "futures-channel"
349−version = "0.3.1"
343+version = "0.3.5"
350344source = "registry+https://github.com/rust-lang/crates.io-index"
351345dependencies = [
352− "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
353− "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
346+ "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
347+ "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
354348]
355349
356350[[package]]
357351name = "futures-core"
358−version = "0.3.1"
352+version = "0.3.5"
359353source = "registry+https://github.com/rust-lang/crates.io-index"
360354
361355[[package]]
362356name = "futures-executor"
363−version = "0.3.1"
357+version = "0.3.5"
364358source = "registry+https://github.com/rust-lang/crates.io-index"
365359dependencies = [
366− "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
367− "futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
368− "futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
360+ "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
361+ "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
362+ "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
369363]
370364
371365[[package]]
372366name = "futures-io"
373−version = "0.3.1"
367+version = "0.3.5"
374368source = "registry+https://github.com/rust-lang/crates.io-index"
375369
376370[[package]]
377371name = "futures-macro"
378−version = "0.3.1"
372+version = "0.3.5"
379373source = "registry+https://github.com/rust-lang/crates.io-index"
380374dependencies = [
381375 "proc-macro-hack 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
382− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
376+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
383377 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
384− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
378+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
385379]
386380
387381[[package]]
388382name = "futures-sink"
389−version = "0.3.1"
383+version = "0.3.5"
390384source = "registry+https://github.com/rust-lang/crates.io-index"
391385
392386[[package]]
393387name = "futures-task"
394−version = "0.3.1"
388+version = "0.3.5"
395389source = "registry+https://github.com/rust-lang/crates.io-index"
390+dependencies = [
391+ "once_cell 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
392+]
396393
397394[[package]]
398395name = "futures-util"
399−version = "0.3.1"
396+version = "0.3.5"
400397source = "registry+https://github.com/rust-lang/crates.io-index"
401398dependencies = [
402− "futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
403− "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
404− "futures-io 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
405− "futures-macro 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
406− "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
407− "futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
408− "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
409− "pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)",
399+ "futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
400+ "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
401+ "futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
402+ "futures-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
403+ "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
404+ "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
405+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
406+ "pin-project 0.4.16 (registry+https://github.com/rust-lang/crates.io-index)",
407+ "pin-utils 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
410408 "proc-macro-hack 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
411409 "proc-macro-nested 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
412410 "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -417,38 +415,41 @@ name = "fxhash"
417415version = "0.2.1"
418416source = "registry+https://github.com/rust-lang/crates.io-index"
419417dependencies = [
420− "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
418+ "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
421419]
422420
423421[[package]]
424−name = "getrandom"
425−version = "0.1.13"
422+name = "half"
423+version = "1.6.0"
426424source = "registry+https://github.com/rust-lang/crates.io-index"
427−dependencies = [
428− "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
429− "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
430− "wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
431−]
432425
433426[[package]]
434427name = "heck"
435428version = "0.3.1"
436429source = "registry+https://github.com/rust-lang/crates.io-index"
437430dependencies = [
438− "unicode-segmentation 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
431+ "unicode-segmentation 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
432+]
433+
434+[[package]]
435+name = "hermit-abi"
436+version = "0.1.3"
437+source = "registry+https://github.com/rust-lang/crates.io-index"
438+dependencies = [
439+ "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
439440]
440441
441442[[package]]
442443name = "itertools"
443−version = "0.8.0"
444+version = "0.9.0"
444445source = "registry+https://github.com/rust-lang/crates.io-index"
445446dependencies = [
446− "either 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
447+ "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
447448]
448449
449450[[package]]
450451name = "itoa"
451−version = "0.4.3"
452+version = "0.4.4"
452453source = "registry+https://github.com/rust-lang/crates.io-index"
453454
454455[[package]]
@@ -461,7 +462,7 @@ dependencies = [
461462
462463[[package]]
463464name = "lazy_static"
464−version = "1.3.0"
465+version = "1.4.0"
465466source = "registry+https://github.com/rust-lang/crates.io-index"
466467
467468[[package]]
@@ -471,7 +472,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
471472
472473[[package]]
473474name = "log"
474−version = "0.4.8"
475+version = "0.4.11"
475476source = "registry+https://github.com/rust-lang/crates.io-index"
476477dependencies = [
477478 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -484,7 +485,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
484485
485486[[package]]
486487name = "memchr"
487−version = "2.2.0"
488+version = "2.2.1"
488489source = "registry+https://github.com/rust-lang/crates.io-index"
489490dependencies = [
490491 "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -503,133 +504,130 @@ name = "nom"
503504version = "4.2.3"
504505source = "registry+https://github.com/rust-lang/crates.io-index"
505506dependencies = [
506− "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
507+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
507508 "version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
508509]
509510
510511[[package]]
511512name = "num-traits"
512−version = "0.2.6"
513+version = "0.2.10"
513514source = "registry+https://github.com/rust-lang/crates.io-index"
515+dependencies = [
516+ "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
517+]
514518
515519[[package]]
516520name = "num_cpus"
517−version = "1.10.0"
521+version = "1.11.1"
518522source = "registry+https://github.com/rust-lang/crates.io-index"
519523dependencies = [
524+ "hermit-abi 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
520525 "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
521526]
522527
523528[[package]]
524−name = "pin-utils"
525−version = "0.1.0-alpha.4"
529+name = "once_cell"
530+version = "1.3.1"
526531source = "registry+https://github.com/rust-lang/crates.io-index"
527532
528533[[package]]
529−name = "proc-macro-hack"
530−version = "0.5.11"
534+name = "oorandom"
535+version = "11.1.0"
531536source = "registry+https://github.com/rust-lang/crates.io-index"
532−dependencies = [
533− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
534− "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
535− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
536−]
537537
538538[[package]]
539−name = "proc-macro-nested"
540−version = "0.1.3"
539+name = "pin-project"
540+version = "0.4.16"
541541source = "registry+https://github.com/rust-lang/crates.io-index"
542+dependencies = [
543+ "pin-project-internal 0.4.16 (registry+https://github.com/rust-lang/crates.io-index)",
544+]
542545
543546[[package]]
544−name = "proc-macro2"
545−version = "0.4.27"
547+name = "pin-project-internal"
548+version = "0.4.16"
546549source = "registry+https://github.com/rust-lang/crates.io-index"
547550dependencies = [
548− "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
551+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
552+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
553+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
549554]
550555
551556[[package]]
552−name = "proc-macro2"
553−version = "1.0.6"
557+name = "pin-utils"
558+version = "0.1.0"
554559source = "registry+https://github.com/rust-lang/crates.io-index"
555−dependencies = [
556− "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
557−]
558560
559561[[package]]
560−name = "quote"
561−version = "0.6.11"
562+name = "plotters"
563+version = "0.2.12"
562564source = "registry+https://github.com/rust-lang/crates.io-index"
563565dependencies = [
564− "proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)",
566+ "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
567+ "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
568+ "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
569+ "web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
565570]
566571
567572[[package]]
568−name = "quote"
569−version = "1.0.2"
573+name = "proc-macro-hack"
574+version = "0.5.11"
570575source = "registry+https://github.com/rust-lang/crates.io-index"
571576dependencies = [
572− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
577+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
578+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
579+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
573580]
574581
575582[[package]]
576−name = "rand_core"
577−version = "0.5.1"
583+name = "proc-macro-nested"
584+version = "0.1.3"
578585source = "registry+https://github.com/rust-lang/crates.io-index"
579−dependencies = [
580− "getrandom 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
581−]
582586
583587[[package]]
584−name = "rand_os"
585−version = "0.2.2"
588+name = "proc-macro2"
589+version = "1.0.18"
586590source = "registry+https://github.com/rust-lang/crates.io-index"
587591dependencies = [
588− "getrandom 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
589− "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
592+ "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
590593]
591594
592595[[package]]
593−name = "rand_xoshiro"
594−version = "0.3.1"
596+name = "quote"
597+version = "1.0.2"
595598source = "registry+https://github.com/rust-lang/crates.io-index"
596599dependencies = [
597− "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
600+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
598601]
599602
600603[[package]]
601604name = "rayon"
602−version = "1.2.1"
605+version = "1.3.0"
603606source = "registry+https://github.com/rust-lang/crates.io-index"
604607dependencies = [
605608 "crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
606− "either 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
607− "rayon-core 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
609+ "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
610+ "rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
608611]
609612
610613[[package]]
611614name = "rayon-core"
612−version = "1.6.1"
615+version = "1.7.0"
613616source = "registry+https://github.com/rust-lang/crates.io-index"
614617dependencies = [
615618 "crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
616619 "crossbeam-queue 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
617620 "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
618− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
619− "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
621+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
622+ "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
620623]
621624
622625[[package]]
623−name = "redox_syscall"
624−version = "0.1.52"
625−source = "registry+https://github.com/rust-lang/crates.io-index"
626−
627−[[package]]
628−name = "redox_termios"
629−version = "0.1.1"
626+name = "regex"
627+version = "1.3.3"
630628source = "registry+https://github.com/rust-lang/crates.io-index"
631629dependencies = [
632− "redox_syscall 0.1.52 (registry+https://github.com/rust-lang/crates.io-index)",
630+ "regex-syntax 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
633631]
634632
635633[[package]]
@@ -637,9 +635,14 @@ name = "regex-automata"
637635version = "0.1.8"
638636source = "registry+https://github.com/rust-lang/crates.io-index"
639637dependencies = [
640− "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
638+ "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
641639]
642640
641+[[package]]
642+name = "regex-syntax"
643+version = "0.6.13"
644+source = "registry+https://github.com/rust-lang/crates.io-index"
645+
643646[[package]]
644647name = "rustc_version"
645648version = "0.2.3"
@@ -650,12 +653,12 @@ dependencies = [
650653
651654[[package]]
652655name = "ryu"
653−version = "1.0.0"
656+version = "1.0.2"
654657source = "registry+https://github.com/rust-lang/crates.io-index"
655658
656659[[package]]
657660name = "same-file"
658−version = "1.0.4"
661+version = "1.0.5"
659662source = "registry+https://github.com/rust-lang/crates.io-index"
660663dependencies = [
661664 "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -686,30 +689,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
686689
687690[[package]]
688691name = "serde"
689−version = "1.0.103"
692+version = "1.0.114"
693+source = "registry+https://github.com/rust-lang/crates.io-index"
694+dependencies = [
695+ "serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
696+]
697+
698+[[package]]
699+name = "serde_cbor"
700+version = "0.11.1"
690701source = "registry+https://github.com/rust-lang/crates.io-index"
691702dependencies = [
692− "serde_derive 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
703+ "half 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
704+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
693705]
694706
695707[[package]]
696708name = "serde_derive"
697−version = "1.0.103"
709+version = "1.0.114"
698710source = "registry+https://github.com/rust-lang/crates.io-index"
699711dependencies = [
700− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
712+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
701713 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
702− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
714+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
703715]
704716
705717[[package]]
706718name = "serde_json"
707−version = "1.0.40"
719+version = "1.0.57"
708720source = "registry+https://github.com/rust-lang/crates.io-index"
709721dependencies = [
710− "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
711− "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
712− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
722+ "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
723+ "ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
724+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
713725]
714726
715727[[package]]
@@ -724,54 +736,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
724736
725737[[package]]
726738name = "syn"
727−version = "1.0.9"
739+version = "1.0.33"
728740source = "registry+https://github.com/rust-lang/crates.io-index"
729741dependencies = [
730− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
742+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
731743 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
732744 "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
733745]
734746
735−[[package]]
736−name = "termion"
737−version = "1.5.1"
738−source = "registry+https://github.com/rust-lang/crates.io-index"
739−dependencies = [
740− "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
741− "redox_syscall 0.1.52 (registry+https://github.com/rust-lang/crates.io-index)",
742− "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
743−]
744−
745747[[package]]
746748name = "textwrap"
747749version = "0.11.0"
748750source = "registry+https://github.com/rust-lang/crates.io-index"
749751dependencies = [
750− "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
752+ "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
751753]
752754
753755[[package]]
754756name = "tinytemplate"
755−version = "1.0.1"
757+version = "1.1.0"
756758source = "registry+https://github.com/rust-lang/crates.io-index"
757759dependencies = [
758− "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
759− "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
760+ "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
761+ "serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)",
760762]
761763
762764[[package]]
763765name = "unicode-segmentation"
764−version = "1.2.1"
766+version = "1.6.0"
765767source = "registry+https://github.com/rust-lang/crates.io-index"
766768
767769[[package]]
768770name = "unicode-width"
769−version = "0.1.5"
770−source = "registry+https://github.com/rust-lang/crates.io-index"
771−
772−[[package]]
773−name = "unicode-xid"
774−version = "0.1.0"
771+version = "0.1.6"
775772source = "registry+https://github.com/rust-lang/crates.io-index"
776773
777774[[package]]
@@ -786,19 +783,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
786783
787784[[package]]
788785name = "walkdir"
789−version = "2.2.7"
786+version = "2.3.1"
790787source = "registry+https://github.com/rust-lang/crates.io-index"
791788dependencies = [
792− "same-file 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
793− "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
789+ "same-file 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
790+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
794791 "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
795792]
796793
797−[[package]]
798−name = "wasi"
799−version = "0.7.0"
800−source = "registry+https://github.com/rust-lang/crates.io-index"
801−
802794[[package]]
803795name = "wasm-bindgen"
804796version = "0.2.55"
@@ -814,24 +806,14 @@ version = "0.2.55"
814806source = "registry+https://github.com/rust-lang/crates.io-index"
815807dependencies = [
816808 "bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
817− "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
818− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
819− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
809+ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
810+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
811+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
820812 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
821− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
813+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
822814 "wasm-bindgen-shared 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
823815]
824816
825−[[package]]
826−name = "wasm-bindgen-futures"
827−version = "0.3.19"
828−source = "registry+https://github.com/rust-lang/crates.io-index"
829−dependencies = [
830− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
831− "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
832− "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
833−]
834−
835817[[package]]
836818name = "wasm-bindgen-futures"
837819version = "0.4.5"
@@ -857,9 +839,9 @@ name = "wasm-bindgen-macro-support"
857839version = "0.2.55"
858840source = "registry+https://github.com/rust-lang/crates.io-index"
859841dependencies = [
860− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
842+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
861843 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
862− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
844+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
863845 "wasm-bindgen-backend 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
864846 "wasm-bindgen-shared 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
865847]
@@ -869,20 +851,6 @@ name = "wasm-bindgen-shared"
869851version = "0.2.55"
870852source = "registry+https://github.com/rust-lang/crates.io-index"
871853
872−[[package]]
873−name = "wasm-bindgen-test"
874−version = "0.2.42"
875−source = "registry+https://github.com/rust-lang/crates.io-index"
876−dependencies = [
877− "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
878− "futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",
879− "js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
880− "scoped-tls 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
881− "wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
882− "wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
883− "wasm-bindgen-test-macro 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)",
884−]
885−
886854[[package]]
887855name = "wasm-bindgen-test"
888856version = "0.3.5"
@@ -896,21 +864,12 @@ dependencies = [
896864 "wasm-bindgen-test-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
897865]
898866
899−[[package]]
900−name = "wasm-bindgen-test-macro"
901−version = "0.2.42"
902−source = "registry+https://github.com/rust-lang/crates.io-index"
903−dependencies = [
904− "proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)",
905− "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)",
906−]
907−
908867[[package]]
909868name = "wasm-bindgen-test-macro"
910869version = "0.3.5"
911870source = "registry+https://github.com/rust-lang/crates.io-index"
912871dependencies = [
913− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
872+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
914873 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
915874]
916875
@@ -921,10 +880,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
921880dependencies = [
922881 "anyhow 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
923882 "heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
924− "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
925− "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
883+ "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
884+ "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)",
926885 "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
927− "syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
886+ "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)",
928887 "wasm-bindgen-backend 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
929888 "weedle 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
930889]
@@ -951,7 +910,7 @@ dependencies = [
951910
952911[[package]]
953912name = "winapi"
954−version = "0.3.7"
913+version = "0.3.8"
955914source = "registry+https://github.com/rust-lang/crates.io-index"
956915dependencies = [
957916 "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -968,7 +927,7 @@ name = "winapi-util"
968927version = "0.1.2"
969928source = "registry+https://github.com/rust-lang/crates.io-index"
970929dependencies = [
971− "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
930+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
972931]
973932
974933[[package]]
@@ -978,104 +937,99 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
978937
979938[metadata]
980939"checksum anyhow 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)" = "9267dff192e68f3399525901e709a48c1d3982c9c072fa32f2127a0cb0babf14"
981−"checksum atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9a7d5b8723950951411ee34d271d99dddcc2035a16ab25310ea2c8cfd4369652"
940+"checksum atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "1803c647a3ec87095e7ae7acfca019e98de5ec9a7d01343f611cf3152ed71a90"
982941"checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2"
983−"checksum bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d155346769a6855b86399e9bc3814ab343cd3d62c7e985113d46a0ec3c281fd"
942+"checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
984943"checksum bstr 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8d6c2c5b58ab920a4f5aeaaca34b4488074e8cc7596af94e6f8c6ff247c60245"
985944"checksum bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ad807f2fc2bf185eeb98ff3a901bd46dc5ad58163d0fa4577ba0d25674d71708"
986−"checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb"
987−"checksum cast 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "926013f2860c46252efceabb19f4a6b308197505082c609025aa6706c011d427"
945+"checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
946+"checksum cast 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "4b9434b9a5aa1450faa3f9cb14ea0e8c53bb5d2b3c1bfd1ab4fc03e9f33fbfb0"
988947"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
989948"checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"
990949"checksum console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b8d976903543e0c48546a91908f21588a680a8c8f984df9a5d69feccb2b2a211"
991−"checksum console_log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1e7871d2947441b0fdd8e2bd1ce2a2f75304f896582c0d572162d48290683c48"
992−"checksum criterion 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "938703e165481c8d612ea3479ac8342e5615185db37765162e762ec3523e2fc6"
993−"checksum criterion-plot 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "eccdc6ce8bbe352ca89025bee672aa6d24f4eb8c53e3a8b5d1bc58011da072a2"
950+"checksum console_log 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "501a375961cef1a0d44767200e66e4a559283097e91d0730b1d75dfb2f8a1494"
951+"checksum criterion 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "70daa7ceec6cf143990669a04c7df13391d55fb27bd4079d252fca774ba244d8"
952+"checksum criterion-plot 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e022feadec601fba1649cfa83586381a4ad31c6bf3a9ab7d408118b05dd9889d"
994953"checksum crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3aa945d63861bfe624b55d153a39684da1e8c0bc8fba932f7ee3a3c16cea3ca"
995954"checksum crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5064ebdbf05ce3cb95e45c8b086f72263f4166b29b97f6baff7ef7fe047b55ac"
996955"checksum crossbeam-queue 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dfd6515864a82d2f877b42813d4553292c6659498c9a2aa31bab5a15243c2700"
997956"checksum crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce446db02cdc3165b94ae73111e570793400d0794e46125cc4056c81cbb039f4"
998957"checksum csv 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "37519ccdfd73a75821cac9319d4fce15a81b9fcf75f951df5b9988aa3a0af87d"
999958"checksum csv-core 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9b5cadb6b25c77aeff80ba701712494213f4a8418fcda2ee11b6560c3ad0bf4c"
1000−"checksum either 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5527cfe0d098f36e3f8839852688e63c8fff1c90b2b405aef730615f9a7bcf7b"
1001−"checksum futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)" = "45dc39533a6cae6da2b56da48edae506bb767ec07370f86f70fc062e9d435869"
1002−"checksum futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b6f16056ecbb57525ff698bb955162d0cd03bee84e6241c27ff75c08d8ca5987"
1003−"checksum futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fcae98ca17d102fd8a3603727b9259fcf7fa4239b603d2142926189bc8999b86"
1004−"checksum futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "79564c427afefab1dfb3298535b21eda083ef7935b4f0ecbfcb121f0aec10866"
1005−"checksum futures-executor 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1e274736563f686a837a0568b478bdabfeaec2dca794b5649b04e2fe1627c231"
1006−"checksum futures-io 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e676577d229e70952ab25f3945795ba5b16d63ca794ca9d2c860e5595d20b5ff"
1007−"checksum futures-macro 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "52e7c56c15537adb4f76d0b7a76ad131cb4d2f4f32d3b0bcabcbe1c7c5e87764"
1008−"checksum futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "171be33efae63c2d59e6dbba34186fe0d6394fb378069a76dfd80fdcffd43c16"
1009−"checksum futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0bae52d6b29cf440e298856fec3965ee6fa71b06aa7495178615953fd669e5f9"
1010−"checksum futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c0d66274fb76985d3c62c886d1da7ac4c0903a8c9f754e8fe0f35a6a6cc39e76"
959+"checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3"
960+"checksum futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1e05b85ec287aac0dc34db7d4a569323df697f9c55b99b15d6b4ef8cde49f613"
961+"checksum futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f366ad74c28cca6ba456d95e6422883cfb4b252a83bed929c83abfdbbf2967d5"
962+"checksum futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399"
963+"checksum futures-executor 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "10d6bb888be1153d3abeb9006b11b02cf5e9b209fda28693c31ae1e4e012e314"
964+"checksum futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "de27142b013a8e869c14957e6d2edeef89e97c289e69d042ee3a49acd8b51789"
965+"checksum futures-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39"
966+"checksum futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3f2032893cb734c7a05d85ce0cc8b8c4075278e93b24b66f9de99d6eb0fa8acc"
967+"checksum futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626"
968+"checksum futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6"
1011969"checksum fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
1012−"checksum getrandom 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "e7db7ca94ed4cd01190ceee0d8a8052f08a247aa1b469a7f68c6a3b71afcf407"
970+"checksum half 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d36fab90f82edc3c747f9d438e06cf0a491055896f2a279638bb5beed6c40177"
1013971"checksum heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205"
1014−"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358"
1015−"checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b"
972+"checksum hermit-abi 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "307c3c9f937f38e3534b1d6447ecf090cafcc9744e4a6360e8b037b2cf5af120"
973+"checksum itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
974+"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
1016975"checksum js-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)" = "1c840fdb2167497b0bd0db43d6dfe61e91637fa72f9d061f8bd17ddc44ba6414"
1017−"checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
976+"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
1018977"checksum libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)" = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558"
1019−"checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
978+"checksum log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
1020979"checksum longest-increasing-subsequence 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b3bd0dd2cd90571056fdb71f6275fada10131182f84899f4b2a916e565d81d86"
1021−"checksum memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39"
980+"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
1022981"checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9"
1023982"checksum nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6"
1024−"checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
1025−"checksum num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a23f0ed30a54abaa0c7e83b1d2d87ada7c3c23078d1d87815af3e3b6385fbba"
1026−"checksum pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5894c618ce612a3fa23881b152b608bafb8c56cfc22f434a3ba3120b40f7b587"
983+"checksum num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c81ffc11c212fa327657cb19dd85eb7419e163b5b076bede2bdb5c974c07e4"
984+"checksum num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "76dac5ed2a876980778b8b85f75a71b6cbf0db0b1232ee12f826bccb00d09d72"
985+"checksum once_cell 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b1c601810575c99596d4afc46f78a678c80105117c379eb3650cf99b8a21ce5b"
986+"checksum oorandom 11.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ebcec7c9c2a95cacc7cd0ecb89d8a8454eca13906f6deb55258ffff0adeb9405"
987+"checksum pin-project 0.4.16 (registry+https://github.com/rust-lang/crates.io-index)" = "81d480cb4e89522ccda96d0eed9af94180b7a5f93fb28f66e1fd7d68431663d1"
988+"checksum pin-project-internal 0.4.16 (registry+https://github.com/rust-lang/crates.io-index)" = "a82996f11efccb19b685b14b5df818de31c1edcee3daa256ab5775dd98e72feb"
989+"checksum pin-utils 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
990+"checksum plotters 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "4e3bb8da247d27ae212529352020f3e5ee16e83c0c258061d27b08ab92675eeb"
1027991"checksum proc-macro-hack 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)" = "ecd45702f76d6d3c75a80564378ae228a85f0b59d2f3ed43c91b4a69eb2ebfc5"
1028992"checksum proc-macro-nested 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "369a6ed065f249a159e06c45752c780bda2fb53c995718f9e484d08daa9eb42e"
1029−"checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
1030−"checksum proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27"
1031−"checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
993+"checksum proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)" = "beae6331a816b1f65d04c45b078fd8e6c93e8071771f41b8163255bbd8d7c8fa"
1032994"checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"
1033−"checksum rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
1034−"checksum rand_os 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a788ae3edb696cfcba1c19bfd388cc4b8c21f8a408432b199c072825084da58a"
1035−"checksum rand_xoshiro 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0e18c91676f670f6f0312764c759405f13afb98d5d73819840cf72a518487bff"
1036−"checksum rayon 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "43739f8831493b276363637423d3622d4bd6394ab6f0a9c4a552e208aeb7fddd"
1037−"checksum rayon-core 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f8bf17de6f23b05473c437eb958b9c850bfc8af0961fe17b4cc92d5a627b4791"
1038−"checksum redox_syscall 0.1.52 (registry+https://github.com/rust-lang/crates.io-index)" = "d32b3053e5ced86e4bc0411fec997389532bf56b000e66cb4884eeeb41413d69"
1039−"checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76"
995+"checksum rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db6ce3297f9c85e16621bb8cca38a06779ffc31bb8184e1be4bed2be4678a098"
996+"checksum rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08a89b46efaf957e52b18062fb2f4660f8b8a4dde1807ca002690868ef2c85a9"
997+"checksum regex 1.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b5508c1941e4e7cb19965abef075d35a9a8b5cdf0846f30b4050e9b55dc55e87"
1040998"checksum regex-automata 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "92b73c2a1770c255c240eaa4ee600df1704a38dc3feaa6e949e7fcd4f8dc09f9"
999+"checksum regex-syntax 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "e734e891f5b408a29efbf8309e656876276f49ab6a6ac208600b4419bd893d90"
10411000"checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
1042−"checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"
1043−"checksum same-file 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8f20c4be53a8a1ff4c1f1b2bd14570d2f634628709752f0702ecdd2b3f9a5267"
1001+"checksum ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bfa8506c1de11c9c4e4c38863ccbe02a305c8188e85a05a784c9e11e1c3910c8"
1002+"checksum same-file 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "585e8ddcedc187886a30fa705c47985c3fa88d06624095856b36ca0b82ff4421"
10441003"checksum scoped-tls 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2"
10451004"checksum scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b42e15e59b18a828bbf5c58ea01debb36b9b096346de35d941dcb89009f24a0d"
10461005"checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
10471006"checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
1048−"checksum serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)" = "1217f97ab8e8904b57dd22eb61cde455fa7446a9c1cf43966066da047c1f3702"
1049−"checksum serde_derive 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)" = "a8c6faef9a2e64b0064f48570289b4bf8823b7581f1d6157c1b52152306651d0"
1050−"checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
1007+"checksum serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "5317f7588f0a5078ee60ef675ef96735a1442132dc645eb1d12c018620ed8cd3"
1008+"checksum serde_cbor 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1e18acfa2f90e8b735b2836ab8d538de304cbb6729a7360729ea5a895d15a622"
1009+"checksum serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e"
1010+"checksum serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)" = "164eacbdb13512ec2745fb09d51fd5b22b0d65ed294a1dcf7285a360c80a675c"
10511011"checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
10521012"checksum sourcefile 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4bf77cb82ba8453b42b6ae1d692e4cdc92f9a47beaf89a847c8be83f4e328ad3"
1053−"checksum syn 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "f89693ae015201f8de93fd96bde2d065f8bfc3f97ce006d5bc9f900b97c0c7c0"
1054−"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096"
1013+"checksum syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)" = "e8d5d96e8cbb005d6959f119f773bfaebb5684296108fb32600c00cde305b2cd"
10551014"checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
1056−"checksum tinytemplate 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7655088894274afb52b807bd3c87072daa1fedd155068b8705cabfd628956115"
1057−"checksum unicode-segmentation 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "aa6024fc12ddfd1c6dbc14a80fa2324d4568849869b779f6bd37e5e4c03344d1"
1058−"checksum unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526"
1059−"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
1015+"checksum tinytemplate 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6d3dc76004a03cec1c5932bca4cdc2e39aaa798e3f82363dd94f9adf6098c12f"
1016+"checksum unicode-segmentation 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0"
1017+"checksum unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7007dbd421b92cc6e28410fe7362e2e0a2503394908f417b68ec8d1c364c4e20"
10601018"checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
10611019"checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
1062−"checksum walkdir 2.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "9d9d7ed3431229a144296213105a390676cc49c9b6a72bd19f3176c98e129fa1"
1063−"checksum wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d"
1020+"checksum walkdir 2.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d"
10641021"checksum wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "29ae32af33bacd663a9a28241abecf01f2be64e6a185c6139b04f18b6385c5f2"
10651022"checksum wasm-bindgen-backend 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "1845584bd3593442dc0de6e6d9f84454a59a057722f36f005e44665d6ab19d85"
1066−"checksum wasm-bindgen-futures 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)" = "0ad171fc1f6e43f97d155d27f4ee5657bd8aa5cce7c497ef3a0a0c5b44618b2d"
10671023"checksum wasm-bindgen-futures 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1458706aa1b8fe6898d19433c9f110d93a05d1f22ae6adf55810409a94df34b4"
10681024"checksum wasm-bindgen-macro 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "87fcc747e6b73c93d22c947a6334644d22cfec5abd8b66238484dc2b0aeb9fe4"
10691025"checksum wasm-bindgen-macro-support 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "3dc4b3f2c4078c8c4a5f363b92fcf62604c5913cbd16c6ff5aaf0f74ec03f570"
10701026"checksum wasm-bindgen-shared 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "ca0b78d6d3be8589b95d1d49cdc0794728ca734adf36d7c9f07e6459508bb53d"
1071−"checksum wasm-bindgen-test 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "8aed4ef1aa56f2ef4aff593c516de6a3e48711c703b3f7415c9151a7c9babd17"
10721027"checksum wasm-bindgen-test 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ed5833682054e941db0b7e2b4877b61bbaafd680608e40d268e070d34558b305"
1073−"checksum wasm-bindgen-test-macro 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "eb477c50f3c9a9ecd99c78fb9bd3b6599d414b918d5f72165b12c53738011ae1"
10741028"checksum wasm-bindgen-test-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "9c5dcf70d21d0ff0ea5cdb97dba9a9b56ddad4a9bd10c8912eedc55618be022f"
10751029"checksum wasm-bindgen-webidl 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)" = "3126356474ceb717c8fb5549ae387c9fbf4872818454f4d87708bee997214bb5"
10761030"checksum web-sys 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)" = "98405c0a2e722ed3db341b4c5b70eb9fe0021621f7350bab76df93b09b649bbf"
10771031"checksum weedle 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3bb43f70885151e629e2a19ce9e50bd730fd436cfd4b666894c9ce4de9141164"
1078−"checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
1032+"checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"
10791033"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
10801034"checksum winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9"
10811035"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
Cargo.toml+9−9
@@ -8,7 +8,7 @@ license = "MPL-2.0"
88name = "dodrio"
99readme = "./README.md"
1010repository = "https://github.com/fitzgen/dodrio"
11−version = "0.1.0"
11+version = "0.2.0"
1212
1313[badges]
1414travis-ci = { repository = "fitzgen/dodrio" }
@@ -46,9 +46,9 @@ bumpalo = "2.6.0"
4646cfg-if = "0.1.10"
4747fxhash = "0.2.1"
4848js-sys = "0.3.32"
49−log = { version = "0.4.8", optional = true }
49+log = { version = "0.4.11", optional = true }
5050longest-increasing-subsequence = "0.1.0"
51−serde = { version = "1.0.103", optional = true }
51+serde = { version = "1.0.114", optional = true }
5252wasm-bindgen = "0.2.55"
5353wasm-bindgen-futures = "0.4.5"
5454
@@ -64,14 +64,14 @@ features = [
6464]
6565
6666[dev-dependencies]
67−console_log = "0.1.2"
68−dodrio-js-api = { version = "=0.1.0", path = "./crates/js-api" }
69−futures = "0.3.1"
70−log = "0.4.8"
67+console_log = "0.2.0"
68+dodrio-js-api = { version = "=0.2.0", path = "./crates/js-api" }
69+futures = "0.3.5"
70+log = "0.4.11"
7171wasm-bindgen-test = "0.3.5"
7272
7373[dev-dependencies.web-sys]
74−version = "0.3.19"
74+version = "0.3.32"
7575features = [
7676 "Attr",
7777 "EventTarget",
@@ -81,7 +81,7 @@ features = [
8181]
8282
8383[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
84−criterion = "0.3.0"
84+criterion = "0.3.3"
8585
8686[profile.bench]
8787debug = true
benches/benches.rs+4−4
@@ -17,16 +17,16 @@ use std::convert::TryInto;
1717
1818/// The simplest thing we can render: `<div/>`.
1919struct Empty;
20−impl Render for Empty {
21− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
20+impl<'a> Render<'a> for Empty {
21+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2222 div(&cx).finish()
2323 }
2424}
2525
2626/// Render a list that is `self.0` items long, has attributes and listeners.
2727struct SimpleList(usize);
28−impl Render for SimpleList {
29− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
28+impl<'a> Render<'a> for SimpleList {
29+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
3030 let mut children = bumpalo::collections::Vec::with_capacity_in(self.0, cx.bump);
3131 children.extend((0..self.0).map(|_| {
3232 li(&cx)
crates/js-api/Cargo.toml+4−4
@@ -7,15 +7,15 @@ keywords = ["javascript", "js", "vdom", "virtual-dom"]
77license = "MPL-2.0"
88name = "dodrio-js-api"
99repository = "https://github.com/fitzgen/dodrio"
10−version = "0.1.0"
10+version = "0.2.0"
1111
1212[badges]
1313travis-ci = { repository = "fitzgen/dodrio" }
1414
1515[dependencies]
16−dodrio = { version = "=0.1.0", path = "../.." }
17−wasm-bindgen = "0.2.42"
18−js-sys = "0.3.19"
16+dodrio = { version = "=0.2.0", path = "../.." }
17+wasm-bindgen = "0.2.55"
18+js-sys = "0.3.32"
1919wasm-bindgen-futures = "0.4.5"
2020
2121[dev-dependencies]
crates/js-api/src/lib.rs+4−4
@@ -99,8 +99,8 @@ impl GreetingViaJs {
9999
100100/// And finally the `Render` implementation! This adds a `<p>` element and some
101101/// text around whatever the inner JS `Greeting` component renders.
102−impl Render for GreetingViaJs {
103− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
102+impl<'a> Render<'a> for GreetingViaJs {
103+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
104104 use dodrio::builder::*;
105105 p(&cx)
106106 .children([
@@ -216,8 +216,8 @@ impl JsRender {
216216 }
217217}
218218
219−impl Render for JsRender {
220− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
219+impl<'a> Render<'a> for JsRender {
220+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
221221 create(cx, self.render())
222222 }
223223}
examples/counter/Cargo.toml+5−5
@@ -11,13 +11,13 @@ crate-type = ["cdylib"]
1111
1212[dependencies]
1313console_error_panic_hook = "0.1.6"
14−console_log = "0.1.2"
14+console_log = "0.2.0"
1515dodrio = { path = "../.." }
16−log = "0.4.8"
17−wasm-bindgen = "0.2.42"
16+log = "0.4.11"
17+wasm-bindgen = "0.2.55"
1818
1919[dependencies.web-sys]
20−version = "0.3.19"
20+version = "0.3.32"
2121features = [
2222 "console",
2323 "Document",
@@ -30,4 +30,4 @@ features = [
3030]
3131
3232[dev-dependencies]
33−wasm-bindgen-test = "0.2.42"
33+wasm-bindgen-test = "0.3.5"
examples/counter/src/lib.rs+2−2
@@ -26,8 +26,8 @@ impl Counter {
2626
2727// The `Render` implementation for `Counter`s displays the current count and has
2828// buttons to increment and decrement the count.
29−impl Render for Counter {
30− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
29+impl<'a> Render<'a> for Counter {
30+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
3131 use dodrio::builder::*;
3232
3333 // Stringify the count as a bump-allocated string.
examples/game-of-life/Cargo.toml+5−6
@@ -11,14 +11,13 @@ crate-type = ["cdylib"]
1111
1212[dependencies]
1313dodrio = { path = "../.." }
14−wasm-bindgen = "0.2.42"
14+wasm-bindgen = "0.2.55"
1515console_error_panic_hook = "0.1.6"
16−js-sys = "0.3.19"
17−wasm-bindgen-futures = "0.3.19"
18−futures = "0.1.28"
16+js-sys = "0.3.32"
17+wasm-bindgen-futures = "0.4.5"
1918
2019[dependencies.web-sys]
21−version = "0.3.19"
20+version = "0.3.32"
2221features = [
2322 "Document",
2423 "HtmlElement",
@@ -27,4 +26,4 @@ features = [
2726]
2827
2928[dev-dependencies]
30−wasm-bindgen-test = "0.2.42"
29+wasm-bindgen-test = "0.3.5"
examples/game-of-life/src/lib.rs+17−12
@@ -1,5 +1,4 @@
11use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
2−use futures::prelude::*;
32use std::cell::RefCell;
43use std::rc::Rc;
54use wasm_bindgen::{prelude::*, JsCast};
@@ -127,8 +126,8 @@ impl Universe {
127126}
128127
129128/// The rendering implementation for our Game of Life.
130−impl Render for Universe {
131− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
129+impl<'a> Render<'a> for Universe {
130+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
132131 use dodrio::builder::*;
133132
134133 let mut rows = bumpalo::collections::Vec::with_capacity_in(self.height as usize, cx.bump);
@@ -178,20 +177,26 @@ pub fn run() {
178177
179178 // Kick off a loop that keeps computing a tick of the universe and then
180179 // re-rendering on every animation frame.
181− let rc: Rc<RefCell<Option<Closure<FnMut()>>>> = Rc::new(RefCell::new(None));
180+ let rc = <Rc<RefCell<Option<Closure<dyn FnMut()>>>>>::default();
182181 let rc2 = rc.clone();
183182 let window2 = window.clone();
184183 let weak = vdom.weak();
185184 let f = Closure::wrap(Box::new(move || {
186185 weak.schedule_render();
187186
188− wasm_bindgen_futures::spawn_local(
189− weak.with_component(|root| {
190− let universe = root.unwrap_mut::<Universe>();
191− universe.tick();
192− })
193− .map_err(|_| wasm_bindgen::throw_str("impossible, we always keep the vdom alive")),
194− );
187+ wasm_bindgen_futures::spawn_local({
188+ let weak = weak.clone();
189+ async move {
190+ let fut = weak.with_component(|root| {
191+ let universe = root.unwrap_mut::<Universe>();
192+ universe.tick();
193+ });
194+
195+ if fut.await.is_err() {
196+ wasm_bindgen::throw_str("impossible, we always keep the vdom alive");
197+ }
198+ }
199+ });
195200
196201 window
197202 .request_animation_frame(
@@ -202,7 +207,7 @@ pub fn run() {
202207 .unchecked_ref::<js_sys::Function>(),
203208 )
204209 .unwrap_throw();
205− }) as Box<FnMut()>);
210+ }) as Box<dyn FnMut()>);
206211 window2
207212 .request_animation_frame(f.as_ref().unchecked_ref::<js_sys::Function>())
208213 .unwrap_throw();
examples/hello-world/Cargo.toml+3−3
@@ -11,11 +11,11 @@ crate-type = ["cdylib"]
1111
1212[dependencies]
1313dodrio = { path = "../.." }
14−wasm-bindgen = "0.2.42"
14+wasm-bindgen = "0.2.55"
1515console_error_panic_hook = "0.1.6"
1616
1717[dependencies.web-sys]
18−version = "0.3.19"
18+version = "0.3.32"
1919features = [
2020 "Document",
2121 "HtmlElement",
@@ -24,4 +24,4 @@ features = [
2424]
2525
2626[dev-dependencies]
27−wasm-bindgen-test = "0.2.42"
27+wasm-bindgen-test = "0.3.5"
examples/hello-world/src/lib.rs+2−2
@@ -10,8 +10,8 @@ struct Hello {
1010
1111// The `Render` implementation describes how to render a `Hello` component into
1212// HTML.
13−impl Render for Hello {
14− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
13+impl<'a> Render<'a> for Hello {
14+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
1515 let msg = bumpalo::format!(in cx.bump, "Hello, {}!", self.who);
1616 let msg = msg.into_bump_str();
1717 p(&cx).children([text(msg)]).finish()
examples/input-form/Cargo.toml+3−3
@@ -11,11 +11,11 @@ crate-type = ["cdylib"]
1111
1212[dependencies]
1313dodrio = { path = "../.." }
14−wasm-bindgen = "0.2.42"
14+wasm-bindgen = "0.2.55"
1515console_error_panic_hook = "0.1.6"
1616
1717[dependencies.web-sys]
18−version = "0.3.19"
18+version = "0.3.32"
1919features = [
2020 "console",
2121 "Document",
@@ -29,4 +29,4 @@ features = [
2929]
3030
3131[dev-dependencies]
32−wasm-bindgen-test = "0.2.42"
32+wasm-bindgen-test = "0.3.5"
examples/input-form/src/lib.rs+2−2
@@ -23,8 +23,8 @@ impl SayHelloTo {
2323
2424// The `Render` implementation has a text `<input>` and a `<div>` that shows a
2525// greeting to the `<input>`'s value.
26−impl Render for SayHelloTo {
27− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
26+impl<'a> Render<'a> for SayHelloTo {
27+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2828 use dodrio::builder::*;
2929
3030 div(&cx)
examples/js-component/Cargo.toml+3−3
@@ -12,12 +12,12 @@ crate-type = ["cdylib"]
1212[dependencies]
1313dodrio = { path = "../.." }
1414dodrio-js-api = { path = "../../crates/js-api" }
15−wasm-bindgen = "0.2.42"
15+wasm-bindgen = "0.2.55"
1616console_error_panic_hook = "0.1.6"
17−js-sys = "0.3.19"
17+js-sys = "0.3.32"
1818
1919[dependencies.web-sys]
20−version = "0.3.19"
20+version = "0.3.32"
2121features = [
2222 "Document",
2323 "HtmlElement",
examples/js-component/src/lib.rs+2−2
@@ -31,8 +31,8 @@ impl GreetingViaJs {
3131
3232/// Here's the `Render` implementation! This adds a `<p>` element and some text
3333/// around whatever the inner JS `Greeting` component renders.
34−impl Render for GreetingViaJs {
35− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
34+impl<'a> Render<'a> for GreetingViaJs {
35+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
3636 use dodrio::builder::*;
3737 p(&cx)
3838 .children([text("JavaScript says: "), self.js.render(cx)])
examples/moire/Cargo.toml+8−9
@@ -8,20 +8,19 @@ edition = "2018"
88crate-type = ["cdylib"]
99
1010[dependencies]
11−cfg-if = "0.1.9"
11+cfg-if = "0.1.10"
1212dodrio = { path = "../.." }
13−futures = "0.1.28"
14−log = "0.4.8"
15−wasm-bindgen = "0.2.42"
16−wasm-bindgen-futures = "0.3.19"
13+log = "0.4.11"
14+wasm-bindgen = "0.2.55"
15+wasm-bindgen-futures = "0.4.5"
1716
1817# Optional dependencies for logging.
1918console_error_panic_hook = { optional = true, version = "0.1.6" }
20−console_log = { optional = true, version = "0.1.2" }
21−js-sys = "0.3.19"
19+console_log = { optional = true, version = "0.2.0" }
20+js-sys = "0.3.32"
2221
2322[dependencies.web-sys]
24−version = "0.3.19"
23+version = "0.3.32"
2524features = [
2625 "Document",
2726 "Element",
@@ -35,7 +34,7 @@ features = [
3534]
3635
3736[dev-dependencies]
38−wasm-bindgen-test = "0.2.42"
37+wasm-bindgen-test = "0.3.5"
3938
4039[features]
4140logging = [
examples/moire/src/lib.rs+4−4
@@ -27,7 +27,7 @@ pub fn run() {
2727 let vdom = Vdom::new(&scene, component);
2828
2929 // Kick off a loop that keeps re-rendering on every animation frame.
30− let rc: Rc<RefCell<Option<Closure<FnMut()>>>> = Rc::new(RefCell::new(None));
30+ let rc = <Rc<RefCell<Option<Closure<dyn FnMut()>>>>>::default();
3131 let rc2 = rc.clone();
3232 let window2 = window.clone();
3333 let weak = vdom.weak();
@@ -42,7 +42,7 @@ pub fn run() {
4242 .unchecked_ref::<js_sys::Function>(),
4343 )
4444 .unwrap_throw();
45− }) as Box<FnMut()>);
45+ }) as Box<dyn FnMut()>);
4646 window2
4747 .request_animation_frame(f.as_ref().unchecked_ref::<js_sys::Function>())
4848 .unwrap_throw();
@@ -104,8 +104,8 @@ impl Moire {
104104 }
105105}
106106
107−impl Render for Moire {
108− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
107+impl<'a> Render<'a> for Moire {
108+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
109109 use dodrio::builder::*;
110110
111111 let elapsed = web_sys::window()
examples/sierpinski-triangle/Cargo.toml+5−6
@@ -9,14 +9,13 @@ crate-type = ["cdylib"]
99
1010[dependencies]
1111dodrio = { path = "../.." }
12−wasm-bindgen = "0.2.42"
12+wasm-bindgen = "0.2.55"
1313console_error_panic_hook = "0.1.6"
14−js-sys = "0.3.19"
15−wasm-bindgen-futures = "0.3.19"
16−futures = "0.1.28"
14+js-sys = "0.3.32"
15+wasm-bindgen-futures = "0.4.5"
1716
1817[dependencies.web-sys]
19−version = "0.3.19"
18+version = "0.3.32"
2019features = [
2120 "Document",
2221 "HtmlElement",
@@ -26,4 +25,4 @@ features = [
2625]
2726
2827[dev-dependencies]
29−wasm-bindgen-test = "0.2.42"
28+wasm-bindgen-test = "0.3.5"
examples/sierpinski-triangle/src/lib.rs+4−4
@@ -85,8 +85,8 @@ impl Container {
8585 }
8686}
8787
88−impl Render for Container {
89− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
88+impl<'a> Render<'a> for Container {
89+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
9090 use dodrio::builder::div;
9191
9292 let elapsed = web_sys::window()
@@ -111,7 +111,7 @@ impl Render for Container {
111111
112112// Kick off a loop that keeps re-rendering on every animation frame.
113113fn animate(window: Window, vdom: Vdom) {
114− let rc: Rc<RefCell<Option<Closure<FnMut()>>>> = Rc::new(RefCell::new(None));
114+ let rc = <Rc<RefCell<Option<Closure<dyn FnMut()>>>>>::default();
115115 let rc2 = rc.clone();
116116 let window2 = window.clone();
117117 let weak = vdom.weak();
@@ -126,7 +126,7 @@ fn animate(window: Window, vdom: Vdom) {
126126 .unchecked_ref::<js_sys::Function>(),
127127 )
128128 .unwrap_throw();
129− }) as Box<FnMut()>);
129+ }) as Box<dyn FnMut()>);
130130 window2
131131 .request_animation_frame(f.as_ref().unchecked_ref::<js_sys::Function>())
132132 .unwrap_throw();
examples/todomvc/Cargo.toml+10−11
@@ -5,22 +5,21 @@ name = "dodrio-todomvc"
55version = "0.1.0"
66
77[dependencies]
8−cfg-if = "0.1.9"
8+cfg-if = "0.1.10"
99dodrio = { path = "../..", features = ["serde"] }
10−futures = "0.1.28"
11−js-sys = "0.3.19"
12−serde = { features = ["derive"], version = "1.0.98" }
13−serde_json = "1.0.40"
14−wasm-bindgen = "0.2.42"
15−wasm-bindgen-futures = "0.3.19"
10+js-sys = "0.3.32"
11+serde = { features = ["derive"], version = "1.0.114" }
12+serde_json = "1.0.57"
13+wasm-bindgen = "0.2.55"
14+wasm-bindgen-futures = "0.4.5"
1615
1716# Optional dependencies for logging.
1817console_error_panic_hook = { optional = true, version = "0.1.6" }
19−console_log = { optional = true, version = "0.1.2" }
20−log = { optional = true, version = "0.4.8" }
18+console_log = { optional = true, version = "0.2.0" }
19+log = { optional = true, version = "0.4.11" }
2120
2221[dependencies.web-sys]
23−version = "0.3.19"
22+version = "0.3.32"
2423features = [
2524 "Document",
2625 "Event",
@@ -35,7 +34,7 @@ features = [
3534]
3635
3736[dev-dependencies]
38−wasm-bindgen-test = "0.2.42"
37+wasm-bindgen-test = "0.3.5"
3938
4039[features]
4140logging = [
examples/todomvc/src/router.rs+22−19
@@ -4,7 +4,6 @@ use crate::todos::Todos;
44use crate::utils;
55use crate::visibility::Visibility;
66use dodrio::VdomWeak;
7−use futures::prelude::*;
87use std::str::FromStr;
98use wasm_bindgen::{prelude::*, JsCast};
109
@@ -29,23 +28,27 @@ pub fn start(vdom: VdomWeak) {
2928 v
3029 });
3130
32− wasm_bindgen_futures::spawn_local(
33− vdom.with_component({
34− let vdom = vdom.clone();
35− move |root| {
36− let todos = root.unwrap_mut::<Todos>();
37− // If the todos' visibility already matches the event's
38− // visibility, then there is nothing to do (ha). If they
39− // don't match, then we need to update the todos' visibility
40− // and re-render.
41− if todos.visibility() != new_vis {
42− todos.set_visibility(new_vis);
43− vdom.schedule_render();
44− }
45− }
46− })
47− .map_err(|_| ()),
48− );
31+ wasm_bindgen_futures::spawn_local({
32+ let vdom = vdom.clone();
33+ async move {
34+ let _ = vdom
35+ .with_component({
36+ let vdom = vdom.clone();
37+ move |root| {
38+ let todos = root.unwrap_mut::<Todos>();
39+ // If the todos' visibility already matches the event's
40+ // visibility, then there is nothing to do (ha). If they
41+ // don't match, then we need to update the todos' visibility
42+ // and re-render.
43+ if todos.visibility() != new_vis {
44+ todos.set_visibility(new_vis);
45+ vdom.schedule_render();
46+ }
47+ }
48+ })
49+ .await;
50+ }
51+ });
4952 };
5053
5154 // Call it once to handle the initial `#` fragment.
@@ -56,7 +59,7 @@ pub fn start(vdom: VdomWeak) {
5659 // Note that if we ever intended to unmount our todos app, we would want to
5760 // provide a method for removing this router's event listener and cleaning
5861 // up after ourselves.
59− let on_hash_change = Closure::wrap(Box::new(on_hash_change) as Box<FnMut()>);
62+ let on_hash_change = Closure::wrap(Box::new(on_hash_change) as Box<dyn FnMut()>);
6063 let window = utils::window();
6164 window
6265 .add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref())
examples/todomvc/src/todo.rs+2−2
@@ -116,8 +116,8 @@ impl<C> Todo<C> {
116116 }
117117}
118118
119−impl<C: TodoActions> Render for Todo<C> {
120− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
119+impl<'a, C: TodoActions> Render<'a> for Todo<C> {
120+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
121121 use dodrio::{
122122 builder::*,
123123 bumpalo::{self, collections::String},
examples/todomvc/src/todos.rs+2−2
@@ -289,8 +289,8 @@ impl<C: TodosActions> Todos<C> {
289289 }
290290}
291291
292−impl<C: TodosActions> Render for Todos<C> {
293− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
292+impl<'a, C: TodosActions> Render<'a> for Todos<C> {
293+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
294294 use dodrio::builder::*;
295295
296296 div(&cx)
src/cached.rs+7−7
@@ -45,8 +45,8 @@ where
4545 /// count: u32,
4646 /// }
4747 ///
48− /// impl Render for Counter {
49− /// fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
48+ /// impl<'a> Render<'a> for Counter {
49+ /// fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
5050 /// // ...
5151 /// # unimplemented!()
5252 /// }
@@ -85,8 +85,8 @@ where
8585 /// who: String
8686 /// }
8787 ///
88− /// impl Render for Hello {
89− /// fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
88+ /// impl<'a> Render<'a> for Hello {
89+ /// fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
9090 /// use dodrio::builder::*;
9191 /// let greeting = bumpalo::format!(in cx.bump, "Hello, {}!", self.who);
9292 /// p(&cx)
@@ -143,11 +143,11 @@ where
143143 }
144144}
145145
146−impl<R> Render for Cached<R>
146+impl<'a, R> Render<'a> for Cached<R>
147147where
148− R: 'static + Default + Render,
148+ R: 'static + Default + for<'b> Render<'b>,
149149{
150− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
150+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
151151 let template = cx.template::<R>();
152152 let cached = match self.cached.get() {
153153 // This does-the-cache-contain-this-id check is necessary because
src/change_list/mod.rs+2−2
@@ -233,9 +233,9 @@ impl ChangeListBuilder<'_> {
233233 self.state.emitter.replace_with();
234234 }
235235
236− pub fn set_attribute(&mut self, name: &str, value: &str) {
236+ pub fn set_attribute(&mut self, name: &str, value: &str, is_namespaced: bool) {
237237 debug_assert!(self.traversal_is_committed());
238− if name == "class" {
238+ if name == "class" && !is_namespaced {
239239 let class_id = self.ensure_string(value);
240240 debug!("emit: set_class({:?})", value);
241241 self.state.emitter.set_class(class_id.into());
src/diff.rs+6−6
@@ -78,7 +78,7 @@ pub(crate) fn diff(
7878 return;
7979 }
8080 diff_listeners(change_list, registry, old_listeners, new_listeners);
81− diff_attributes(change_list, old_attributes, new_attributes);
81+ diff_attributes(change_list, old_attributes, new_attributes, new_namespace.is_some());
8282 diff_children(
8383 cached_set,
8484 change_list,
@@ -204,26 +204,26 @@ fn diff_listeners(
204204// [... node]
205205//
206206// The change list stack is left unchanged.
207−fn diff_attributes(change_list: &mut ChangeListBuilder, old: &[Attribute], new: &[Attribute]) {
207+fn diff_attributes(change_list: &mut ChangeListBuilder, old: &[Attribute], new: &[Attribute], is_namespaced: bool) {
208208 // Do O(n^2) passes to add/update and remove attributes, since
209209 // there are almost always very few attributes.
210210 'outer: for new_attr in new {
211211 if new_attr.is_volatile() {
212212 change_list.commit_traversal();
213− change_list.set_attribute(new_attr.name, new_attr.value);
213+ change_list.set_attribute(new_attr.name, new_attr.value, is_namespaced);
214214 } else {
215215 for old_attr in old {
216216 if old_attr.name == new_attr.name {
217217 if old_attr.value != new_attr.value {
218218 change_list.commit_traversal();
219− change_list.set_attribute(new_attr.name, new_attr.value);
219+ change_list.set_attribute(new_attr.name, new_attr.value, is_namespaced);
220220 }
221221 continue 'outer;
222222 }
223223 }
224224
225225 change_list.commit_traversal();
226− change_list.set_attribute(new_attr.name, new_attr.value);
226+ change_list.set_attribute(new_attr.name, new_attr.value, is_namespaced);
227227 }
228228 }
229229
@@ -953,7 +953,7 @@ fn create(
953953 }
954954
955955 for attr in attributes {
956− change_list.set_attribute(&attr.name, &attr.value);
956+ change_list.set_attribute(&attr.name, &attr.value, namespace.is_some());
957957 }
958958
959959 // Fast path: if there is a single text child, it is faster to
src/lib.rs+2−2
@@ -18,8 +18,8 @@
1818//! }
1919//! }
2020//!
21−//! impl<'who> Render for Hello<'who> {
22−//! fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
21+//! impl<'a, 'who> Render<'a> for Hello<'who> {
22+//! fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2323//! use dodrio::builder::*;
2424//!
2525//! let id = bumpalo::format!(in cx.bump, "hello-{}", self.who);
src/render.rs+39−12
@@ -21,8 +21,8 @@ use wasm_bindgen::UnwrapThrowExt;
2121///
2222/// pub struct MyComponent;
2323///
24−/// impl Render for MyComponent {
25−/// fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
24+/// impl<'a> Render<'a> for MyComponent {
25+/// fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2626/// use dodrio::builder::*;
2727///
2828/// p(&cx)
@@ -35,26 +35,26 @@ use wasm_bindgen::UnwrapThrowExt;
3535/// }
3636/// }
3737/// ```
38−pub trait Render {
38+pub trait Render<'a> {
3939 /// Render `self` as a virtual DOM. Use the given context's `Bump` for
4040 /// temporary allocations.
41− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a>;
41+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a>;
4242}
4343
44−impl<'r, R> Render for &'r R
44+impl<'a, 'r, R> Render<'a> for &'r R
4545where
46− R: Render,
46+ R: Render<'a>,
4747{
48− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
48+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
4949 (**self).render(cx)
5050 }
5151}
5252
53−impl<R> Render for Rc<R>
53+impl<'a, R> Render<'a> for Rc<R>
5454where
55− R: Render,
55+ R: Render<'a>,
5656{
57− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
57+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
5858 (**self).render(cx)
5959 }
6060}
@@ -69,7 +69,7 @@ where
6969/// You do not need to implement this trait by hand: there is a blanket
7070/// implementation for all `Render` types that fulfill the `RootRender`
7171/// requirements.
72−pub trait RootRender: Any + Render {
72+pub trait RootRender: Any + for<'a> Render<'a> {
7373 /// Get this `&RootRender` trait object as an `&Any` trait object reference.
7474 fn as_any(&self) -> &dyn Any;
7575
@@ -80,7 +80,7 @@ pub trait RootRender: Any + Render {
8080
8181impl<T> RootRender for T
8282where
83− T: Any + Render,
83+ T: Any + for<'a> Render<'a>,
8484{
8585 fn as_any(&self) -> &dyn Any {
8686 self
@@ -138,4 +138,31 @@ mod tests {
138138 #[allow(dead_code)]
139139 fn takes_dyn_render(_: &dyn super::RootRender) {}
140140 }
141+
142+ #[test]
143+ fn render_bump_scoped_child() {
144+ use crate::{builder::*, bumpalo::collections::String, Node, Render, RenderContext};
145+
146+ struct Child<'a> {
147+ name: &'a str,
148+ }
149+
150+ impl<'a> Render<'a> for Child<'a> {
151+ fn render(&self, _cx: &mut RenderContext<'a>) -> Node<'a> {
152+ text(self.name)
153+ }
154+ }
155+
156+ struct Parent;
157+
158+ impl<'a> Render<'a> for Parent {
159+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
160+ let child_name = String::from_str_in("child", cx.bump).into_bump_str();
161+
162+ div(&cx)
163+ .children([Child { name: child_name }.render(cx)])
164+ .finish()
165+ }
166+ }
167+ }
141168}
src/render_context.rs+1−1
@@ -69,7 +69,7 @@ impl<'a> RenderContext<'a> {
6969 /// Get or create the cached template for `Cached<R>`.
7070 pub(crate) fn template<R>(&mut self) -> Option<CacheId>
7171 where
72− R: 'static + Default + Render,
72+ R: 'static + Default + for<'b> Render<'b>,
7373 {
7474 let template_id = Cached::<R>::template_id();
7575 if let Some(cache_id) = self.templates.get(&template_id).cloned() {
src/vdom.rs+6
@@ -380,6 +380,9 @@ impl VdomWeak {
380380 ) -> Result<Box<dyn RootRender + 'static>, VdomDroppedError> {
381381 let inner = self.inner.upgrade().ok_or(VdomDroppedError {})?;
382382
383+ // Wait for a new tick of the micro-task queue
384+ let _ = JsFuture::from(js_sys::Promise::resolve(&JsValue::null())).await;
385+
383386 let old = {
384387 let mut exclusive = inner.exclusive.borrow_mut();
385388 mem::replace(&mut *exclusive.component.as_mut().unwrap_throw(), root)
@@ -401,6 +404,9 @@ impl VdomWeak {
401404 {
402405 let inner = self.inner.upgrade().ok_or(VdomDroppedError {})?;
403406
407+ // Wait for a new tick of the micro-task queue
408+ let _ = JsFuture::from(js_sys::Promise::resolve(&JsValue::null())).await;
409+
404410 let mut exclusive = inner.exclusive.borrow_mut();
405411
406412 Ok(f(exclusive.component_raw_mut()))
tests/web/cached.rs+4−4
@@ -18,8 +18,8 @@ impl CountRenders {
1818 }
1919}
2020
21−impl Render for CountRenders {
22− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
21+impl<'a> Render<'a> for CountRenders {
22+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2323 let count = self.render_count.get() + 1;
2424 self.render_count.set(count);
2525
@@ -153,8 +153,8 @@ impl Default for Id {
153153 }
154154}
155155
156−impl Render for Id {
157− fn render<'a>(&self, _cx: &mut RenderContext<'a>) -> Node<'a> {
156+impl<'a> Render<'a> for Id {
157+ fn render(&self, _cx: &mut RenderContext<'a>) -> Node<'a> {
158158 text(self.0)
159159 }
160160}
tests/web/events.rs+4−4
@@ -24,8 +24,8 @@ impl EventContainer {
2424 }
2525}
2626
27−impl Render for EventContainer {
28− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
27+impl<'a> Render<'a> for EventContainer {
28+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
2929 use dodrio::builder::*;
3030 div(&cx)
3131 .attr("id", "target")
@@ -126,8 +126,8 @@ impl ListensOnlyOnFirstRender {
126126 }
127127}
128128
129−impl Render for ListensOnlyOnFirstRender {
130− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
129+impl<'a> Render<'a> for ListensOnlyOnFirstRender {
130+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
131131 use dodrio::builder::*;
132132
133133 let count = self.count.get();
tests/web/js_api.rs+2−2
@@ -35,8 +35,8 @@ impl WrapJs {
3535 }
3636}
3737
38−impl Render for WrapJs {
39− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
38+impl<'a> Render<'a> for WrapJs {
39+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
4040 div(&cx)
4141 .attr("class", "wrap-js")
4242 .children([self.inner.render(cx)])
tests/web/keyed.rs+7−5
@@ -7,8 +7,8 @@ use wasm_bindgen_test::*;
77
88struct Keyed(u16);
99
10−impl Render for Keyed {
11− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
10+impl<'a> Render<'a> for Keyed {
11+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
1212 let key = bumpalo::format!(in cx.bump, "{}", self.0).into_bump_str();
1313 div(&cx)
1414 .attr("class", "keyed")
@@ -33,8 +33,8 @@ where
3333
3434async fn assert_keyed<Before, After>(before: Before, after: After) -> Result<(), JsValue>
3535where
36− Before: 'static + Render,
37− After: 'static + Render,
36+ Before: 'static + for<'a> Render<'a>,
37+ After: 'static + for<'a> Render<'a>,
3838{
3939 #[wasm_bindgen(module = "/tests/web/keyed.js")]
4040 extern "C" {
@@ -90,7 +90,9 @@ macro_rules! keyed_tests {
9090 assert_keyed(
9191 RenderFn(|$before_cx| { $( $before )* }),
9292 RenderFn(|$after_cx| { $( $after )* }),
93− ).await.unwrap()
93+ )
94+ .await
95+ .unwrap()
9496 }
9597 )*
9698 }
tests/web/main.rs+6−6
@@ -50,7 +50,7 @@ pub fn init_logging() {
5050
5151/// Assert that the `container` contains the physical DOM tree that matches
5252/// `r`'s rendered virtual DOM.
53−pub fn assert_rendered<R: Render>(container: &web_sys::Element, r: &R) {
53+pub fn assert_rendered<R: for<'a> Render<'a>>(container: &web_sys::Element, r: &R) {
5454 init_logging();
5555
5656 let cached_set = &RefCell::new(CachedSet::default());
@@ -155,11 +155,11 @@ pub struct RenderFn<F>(F)
155155where
156156 F: for<'a> Fn(&mut RenderContext<'a>) -> Node<'a>;
157157
158−impl<F> Render for RenderFn<F>
158+impl<'a, F> Render<'a> for RenderFn<F>
159159where
160− F: for<'a> Fn(&mut RenderContext<'a>) -> Node<'a>,
160+ F: for<'b> Fn(&mut RenderContext<'b>) -> Node<'b>,
161161{
162− fn render<'a>(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
162+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
163163 (self.0)(cx)
164164 }
165165}
@@ -169,8 +169,8 @@ where
169169/// the physical DOM tree correctly matches `after`.
170170pub async fn assert_before_after<R, S>(before: R, after: S) -> Result<(), JsValue>
171171where
172− R: 'static + Render,
173− S: 'static + Render,
172+ R: 'static + for<'a> Render<'a>,
173+ S: 'static + for<'a> Render<'a>,
174174{
175175 let container = create_element("div");
176176
tests/web/render.rs+89−1
@@ -1,6 +1,7 @@
11use super::{assert_rendered, before_after, create_element, RenderFn};
2−use dodrio::{builder::*, Vdom};
2+use dodrio::{builder::*, bumpalo::collections::String, Node, Render, RenderContext, Vdom};
33use std::rc::Rc;
4+use wasm_bindgen::{ JsCast};
45use wasm_bindgen_test::*;
56
67#[wasm_bindgen_test]
@@ -34,6 +35,93 @@ fn container_is_emptied_upon_drop() {
3435 assert!(container.first_child().is_none());
3536}
3637
38+/// Renders a child with a lifetime scoped to the RenderContext bump arena.
39+#[wasm_bindgen_test]
40+fn render_bump_scoped_node() {
41+ struct Child<'a> {
42+ name: &'a str,
43+ }
44+
45+ impl<'a> Render<'a> for Child<'a> {
46+ fn render(&self, _cx: &mut RenderContext<'a>) -> Node<'a> {
47+ text(self.name)
48+ }
49+ }
50+
51+ struct Parent;
52+
53+ impl<'a> Render<'a> for Parent {
54+ fn render(&self, cx: &mut RenderContext<'a>) -> Node<'a> {
55+ let child_name = String::from_str_in("child", cx.bump).into_bump_str();
56+
57+ div(&cx)
58+ .children([Child { name: child_name }.render(cx)])
59+ .finish()
60+ }
61+ }
62+
63+ let parent = Rc::new(RenderFn(|cx| {
64+ Parent.render(cx)
65+ }));
66+
67+ let container = create_element("div");
68+ let _vdom = Vdom::new(&container, parent.clone());
69+
70+ assert_rendered(&container, &parent);
71+}
72+
73+/// Originally, dodrio would use the className property for SVGs.
74+///
75+/// This is problematic because when SVG elements are created, the className is flagged as a read
76+/// only property, so setting it causes an exception to be thrown. Here's an example of how this
77+/// happens:
78+///
79+/// let elem = web_sys::window()
80+/// .unwrap()
81+/// .document()
82+/// .unwrap()
83+/// .create_element_ns(Some("http://www.w3.org/2000/svg"), "svg")
84+/// .unwrap();
85+///
86+/// elem.set_class_name("does-not-work");
87+///
88+/// -----------------------------------------------------------------------------------------------
89+///
90+/// wasm-bindgen: imported JS function that was not marked as `catch` threw an error:
91+/// setting getter-only property "className"
92+///
93+/// -----------------------------------------------------------------------------------------------
94+///
95+/// Now, dodrio passes the 'class' attribute of all namespaced elements into set_attribute. This
96+/// satisfies the restrictions on SVG and keeps the optimized path for non-namespaced elements
97+#[wasm_bindgen_test(async)]
98+async fn test_svg_set_class() {
99+ let container = create_element("div");
100+
101+
102+ let valid_svg = Rc::new(RenderFn(|cx| {
103+ ElementBuilder::new(cx.bump, "svg")
104+ .namespace(Some("http://www.w3.org/2000/svg"))
105+ .attr("class", "works")
106+ .finish()
107+ }));
108+
109+ let vdom = Vdom::new(&container, valid_svg.clone());
110+ let weak = vdom.weak();
111+
112+ weak.render().await.unwrap();
113+
114+ assert_eq!(
115+ "works",
116+ container.first_child()
117+ .expect("unable to get svg")
118+ .dyn_ref::<web_sys::Element>()
119+ .expect("svg should be an element")
120+ .get_attribute("class")
121+ .expect("unable to get 'class' of svg")
122+ );
123+}
124+
37125before_after! {
38126 same_text {
39127 before(_cx) {