File tree 5 files changed +418
-373
lines changed
5 files changed +418
-373
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,8 @@ version = "0.1.0"
11
11
gloo-timers = { version = " 0.1.0" , path = " crates/timers" }
12
12
gloo-console-timer = { version = " 0.1.0" , path = " crates/console-timer" }
13
13
14
+ [features ]
15
+ default = []
16
+ futures = [" gloo-timers/futures" ]
17
+
14
18
[workspace ]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ The measurement ends when the timer object goes out of scope / is dropped.
34
34
35
35
```no_run
36
36
use gloo_console_timer::ConsoleTimer;
37
- use gloo_timers::Timeout;
37
+ use gloo_timers::callback:: Timeout;
38
38
39
39
// Start timing a new operation.
40
40
let timer = ConsoleTimer::new("foo");
Original file line number Diff line number Diff line change @@ -5,16 +5,28 @@ authors = ["Rust and WebAssembly Working Group"]
5
5
edition = " 2018"
6
6
7
7
[dependencies ]
8
- wasm-bindgen-futures = " 0.3.14"
9
8
wasm-bindgen = " 0.2.37"
10
9
js-sys = " 0.3.14"
11
- futures = " 0.1.25"
10
+
11
+ [dependencies .futures_rs ]
12
+ package = " futures"
13
+ version = " 0.1.25"
14
+ optional = true
15
+
16
+ [dependencies .wasm-bindgen-futures ]
17
+ version = " 0.3.14"
18
+ optional = true
12
19
13
20
[dependencies .web-sys ]
14
21
version = " 0.3.14"
15
22
features = [
16
23
" Window" ,
17
24
]
18
25
26
+ [features ]
27
+ default = []
28
+ futures = [" futures_rs" , " wasm-bindgen-futures" ]
29
+
30
+
19
31
[dev-dependencies ]
20
32
wasm-bindgen-test = " 0.2.37"
You can’t perform that action at this time.
0 commit comments