Cargo Features
[dependencies]
embedded-spi = { version = "0.6.2", default-features = false, features = ["ffi", "utils", "hal", "hal-cp2130", "hal-linux", "mock"] }
- default = hal, hal-cp2130, hal-linux, mock
-
These default features are set whenever
embedded-spi
is added without
somewhere in the dependency tree.default-features = false - ffi = libc
-
Affects
embedded-spi::ffi
… - utils = hal
-
Affects
embedded-spi::utils
… - hal default utils? = serde, simplelog, structopt, toml
- hal-cp2130 default = driver-cp2130
- hal-linux default = linux-embedded-hal
- mock default
-
Affects
embedded-spi::mock
…
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.
- linux-embedded-hal hal-linux
-
Enables linux-embedded-hal ^0.3.0
- libc ffi?
- serde hal
- toml hal
-
Enables toml ^0.5.1
- structopt hal
- simplelog hal
-
Enables simplelog ^0.5.3
- driver-cp2130 hal-cp2130
-
Enables driver-cp2130 ^0.3.1