Skip to content

Commit

Permalink
Mark tokio as an optional dependency, used only for the binary targ…
Browse files Browse the repository at this point in the history
…et (#89)
  • Loading branch information
timrogers authored Oct 1, 2024
1 parent 908a55b commit ee38eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit ee38eeb

Please sign in to comment.