Cargo Features

[dependencies]
tm1637-gpio-driver = { version = "2.0.6", default-features = false, features = ["fourdigit7segdis", "dummy", "gpio-api-wiringpi", "gpio-api-gpio_cdev", "gpio-api-sysfs_gpio", "gpio-api-gpio"] }
default = dummy, fourdigit7segdis, gpio-api-gpio_cdev

default features:
"gpio_cdev" is recommended => because of this it's a default feature

fourdigit7segdis default

no dependencies; just used for conditional compilation

Affects tm1637-gpio-driver::fourdigit7segdis

dummy default

only useful for debugging/testing; for example if you are developing on your mac and want to breakpoint into a function; wiringpi won't work on Mac for example

gpio-api-wiringpi = wiringpi

"gpio-api-${crate.name}"
mapping from feature to its dependencies

gpio-api-gpio_cdev default = gpio-cdev
gpio-api-sysfs_gpio = sysfs_gpio
gpio-api-gpio = gpio

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.

wiringpi gpio-api-wiringpi?
sysfs_gpio gpio-api-sysfs_gpio?
gpio gpio-api-gpio?
gpio-cdev gpio-api-gpio_cdev

Enables gpio-cdev ^0.5.1