Cargo Features
[dependencies]
linux-embedded-hal = { version = "0.4.0", default-features = false, features = ["gpio_sysfs", "gpio_cdev", "async-tokio", "i2c", "spi"] }
- default = gpio_cdev, gpio_sysfs, i2c, spi
-
These default features are set whenever
linux-embedded-hal
is added without
somewhere in the dependency tree.default-features = false - gpio_sysfs default = sysfs_gpio
- gpio_cdev default = gpio-cdev
- async-tokio
-
Enables async-tokio of gpio-cdev
- i2c default = i2cdev
- spi default = spidev
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.