Cargo Features

[dependencies]
unicorn_hat_hd = { version = "0.2.1", default-features = false, features = ["hardware", "fake-hardware"] }
default = hardware

The hardware feature is set by default whenever unicorn_hat_hd is added without default-features = false somewhere in the dependency tree.

hardware default = spidev

Affects unicorn_hat_hd::UnicornHatHd

fake-hardware = ansi_term

Affects unicorn_hat_hd::UnicornHatHd

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.

ansi_term fake-hardware?

Enables ansi_term ^0.10.2

spidev hardware

Enables spidev ^0.3.0