From 9004a33bae205a40c0105497dbab654e28014b67 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sat, 3 Oct 2026 01:29:40 +0200 Subject: [PATCH] deps: trim the tokio feature set to the APIs in use The runtime (multi-thread, for Runtime::new + block_on and task spawning), time (retries, timeouts), sync (channels) and macros (#[tokio::test]) cover every tokio:: path in the tree; 'full' also pulled fs, io, net and process support nothing uses. Cargo.lock loses the corresponding mio/signal deps if nothing else needs them. --- Cargo.lock | 2 -- Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ca35de3..aaa93e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2241,9 +2241,7 @@ dependencies = [ "bytes 1.12.1", "libc", "mio", - "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.61.2", diff --git a/Cargo.toml b/Cargo.toml index 1d56e3c..777133c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ reqwest = { version = "0.12.9", features = ["blocking", "json", "stream"] } git2 = "0.20.2" regex = "1" chrono = "0.4" -tokio = { version = "1.41.1", features = ["full"] } +tokio = { version = "1.41.1", features = ["rt-multi-thread", "macros", "time", "sync"] } sha2 = "0.10.8" sha1 = "0.10" md-5 = "0.10"