Cargo Features
[dependencies]
berryimu = { version = "0.2.0", default-features = false, features = ["i2c", "spi"] }
- default = i2c, spi
-
These default features are set whenever
berryimu
is added without
somewhere in the dependency tree.default-features = false - 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.
- i2cdev i2c
-
Enables i2cdev ^0.5.1
i2c dependencies
- spidev spi
-
Enables spidev ^0.5.1
spi dependencies