Cargo Features
axp2101-dd has no features set by default.
[dependencies]
axp2101-dd = { version = "0.2.3", features = ["std", "log", "defmt"] }
- std
-
thiserror:
Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.
#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}
Without std, this would need to be written #[error("... {}", path.display())]. - log
-
Enables log
- defmt
-
Enables defmt, defmt-03 of device-driver, embedded-hal, and embedded-hal-async
axp2101-dd has 3 features without comments.