Cargo Features
[dependencies]
i2cdriver = { version = "0.2.1", default-features = false, features = ["async", "eh1", "eh0"] }
- default = eh0, eh1
-
These default features are set whenever
i2cdriver
is added without
somewhere in the dependency tree.default-features = false - async = embedded-hal-async
-
requires nightly compiler, so not a default trait.
- eh1 default = embedded-hal-1
-
Traits for embedded-hal 1.0
- eh0 default = embedded-hal-0
-
Traits for embedded-hal 0.2.x
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.
- embedded-hal-0 eh0
-
Enables embedded-hal ^0.2.7
- embedded-hal-1 eh1
-
Enables embedded-hal
- embedded-hal-async async?