Optimize dep tokio: Disable all feature except rt-multi-thread, macros

and process

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-05-31 18:33:19 +10:00
parent db3f12c3ea
commit 91bb84d5a8
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -37,7 +37,10 @@ strum_macros = "0.24.0"
tar = "0.4.38" tar = "0.4.38"
tempfile = "3.3.0" tempfile = "3.3.0"
tinytemplate = "1.2.1" tinytemplate = "1.2.1"
tokio = { version = "1.18.0", features = [ "full" ] }
# This crate uses features rt-multi-thread and macros in `#[tokio::main]` and
# uses feature process to create process.
tokio = { version = "1.18.0", features = [ "rt-multi-thread", "macros", "process" ], default-features = false }
url = "2.2.2" url = "2.2.2"
xz2 = "0.1.6" xz2 = "0.1.6"
zip = "0.6.2" zip = "0.6.2"