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 default-features = false somewhere in the dependency tree.

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.

gpio-cdev async-tokio? gpio_cdev
sysfs_gpio gpio_sysfs
i2cdev i2c
spidev spi