Cargo Features
[dependencies]
odem-rs-core = { version = "0.1.1", default-features = false, features = ["std", "alloc", "tracing", "uom"] }
- default = std, tracing, uom
-
These default features are set whenever
odem-rs-core
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of thiserror and optional tracing
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())]. - alloc std
-
Enables hashbrown
optional dependencies
- tracing default
-
Enables tracing and tracing-subscriber
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.
- uom default