From ee38eebf24e960dacfc21e2dbd0ef54193cc8a85 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 1 Oct 2024 17:09:18 -0400 Subject: [PATCH] Mark `tokio` as an optional dependency, used only for the binary target (#89) --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dd76b5b..e4991df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,11 +17,11 @@ hidapi = "2.6.3" clap = { version = "4.5.13", features = ["derive"], optional = true } serde = { version = "1.0.210", features = ["derive"], optional = true } serde_json = { version = "1.0.122", optional = true } -tokio = { version = "1.40.0", features = ["full"] } +tokio = { version = "1.40.0", features = ["full"], optional = true } [features] default = ["cli"] -cli = ["dep:clap", "dep:serde", "dep:serde_json", "dep:inotify"] +cli = ["dep:clap", "dep:serde", "dep:serde_json", "dep:inotify", "dep:tokio"] [target.'cfg(target_os = "linux")'.dependencies] inotify = { version = "0.11.0", optional = true }