From 91bb84d5a8bab87226be0c832d274d11e67c7fd0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 31 May 2022 18:33:19 +1000 Subject: [PATCH] Optimize dep tokio: Disable all feature except rt-multi-thread, macros and process Signed-off-by: Jiahao XU --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ddbe4f9c..c5d3ac9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,10 @@ strum_macros = "0.24.0" tar = "0.4.38" tempfile = "3.3.0" 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" xz2 = "0.1.6" zip = "0.6.2"