Cargo Features

[dependencies]
odem-rs = { version = "0.1.1", default-features = false, features = ["std", "alloc", "tracing", "uom", "rand", "rand_pcg", "libm"] }
default = rand, std, uom

These default features are set whenever odem-rs is added without default-features = false somewhere in the dependency tree.

Enables odem-rs-core, odem-rs-sync, and odem-rs-util

std default = alloc

Enables std of odem-rs-core, odem-rs-sync, odem-rs-util, 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, odem-rs-sync, and odem-rs-util

tracing

propagate optional dependencies

Enables tracing of odem-rs-core and odem-rs-sync

uom default

Enables uom, uom of odem-rs-core and odem-rs-util

rand default

Enables rand and rand_xoshiro of odem-rs-util and rand

optional dependencies

rand_pcg

Enables rand and rand_pcg of odem-rs-util

libm

Enables libm of odem-rs-util