Skip to content

Commit 0327e7e

Browse files
Remove unused libusb dependency on Windows
1 parent fe81068 commit 0327e7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

initialiser/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ license = "MIT"
99
categories = ["hardware-support", "command-line-utilities"]
1010

1111
[dependencies]
12-
rusb = "0.9.4"
13-
anyhow = "1.0.86"
1412
cfg-if = "1.0.0"
1513
tokio = { version = "1.39.1", features = ["rt", "rt-multi-thread", "macros", "sync"] }
1614

15+
[target.'cfg(not(windows))'.dependencies]
16+
anyhow = "1.0.86"
17+
rusb = "0.9.4"
18+
1719
[target.'cfg(target_os = "macos")'.dependencies]
1820
block = "0.1.6"
1921
xpc-connection-sys = { git = "https://github.com/dfrankland/xpc-connection-rs.git" }

0 commit comments

Comments
 (0)