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