@@ -18,7 +18,9 @@ getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] }
|
18 | 18 | [target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies] |
19 | 19 | tempfile = "3" |
20 | 20 | page_size = "0.6" |
21 | | -tokio = { version = "1.24", features = ["macros", "rt-multi-thread", "time", "net"] } |
| 21 | +# Avoid pulling in all of tokio's dependencies. |
| 22 | +# However, without `net` and `signal`, tokio uses fewer relevant system APIs. |
| 23 | +tokio = { version = "1.24", features = ["macros", "rt-multi-thread", "time", "net", "fs", "sync", "signal"] } |
22 | 24 | |
23 | 25 | [target.'cfg(windows)'.dependencies] |
24 | 26 | windows-sys = { version = "0.52", features = [ "Win32_Foundation", "Win32_System_Threading" ] } |
|