We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9692e1 commit fb2db21Copy full SHA for fb2db21
Cargo.toml
@@ -16,7 +16,7 @@ edition = "2018"
16
gpio_sysfs = ["sysfs_gpio"]
17
gpio_cdev = ["gpio-cdev"]
18
async-tokio = ["gpio-cdev/async-tokio", "dep:embedded-hal-async", "tokio/time"]
19
-i2c = ["i2cdev"]
+i2c = ["i2cdev", "nix"]
20
spi = ["spidev"]
21
serial = ["serialport", "embedded-hal-nb"]
22
@@ -32,7 +32,7 @@ i2cdev = { version = "0.6.0", optional = true }
32
nb = "1"
33
serialport = { version = "4.2.0", default-features = false, optional = true }
34
spidev = { version = "0.6.0", optional = true }
35
-nix = "0.27.1"
+nix = { version = "0.27.1", optional = true }
36
tokio = { version = "1", default-features = false, optional = true }
37
38
[dev-dependencies]
0 commit comments