From 2928f76c0f514834205c6db93ff9470741ab2d54 Mon Sep 17 00:00:00 2001 From: Matt Stark Date: Thu, 14 Nov 2024 12:22:19 +1100 Subject: [PATCH] Minimize the set of tokio features that need to be enabled. --- watchman/rust/watchman_client/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/watchman/rust/watchman_client/Cargo.toml b/watchman/rust/watchman_client/Cargo.toml index 0278749c8f3e..4b45979b2925 100644 --- a/watchman/rust/watchman_client/Cargo.toml +++ b/watchman/rust/watchman_client/Cargo.toml @@ -17,14 +17,16 @@ maplit = "1.0" serde = { version = "1.0.126", features = ["derive", "rc"] } serde_bser = { version = "0.4", path = "../serde_bser" } thiserror = "1.0" -tokio = { version = "1.7.1", features = ["full", "test-util"] } -tokio-util = { version = "0.6", features = ["full"] } +tokio = { version = "1.7.1", features = ["io-util", "net", "rt", "process"] } +tokio-util = { version = "0.6", features = ["codec"] } [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["fileapi", "handleapi", "winbase", "winuser"] } [dev-dependencies] clap = { version = "4.5.7", features = ["derive"] } +tokio = { version = "1.7.1", features = ["io-util", "net", "macros", "process", "rt-multi-thread", "test-util"] } +tokio-util = { version = "0.6", features = ["codec", "io"] } [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fbcode_build)"] }