Cargo Features
[dependencies]
dimensional_quantity = { version = "0.1.8", default-features = false, features = ["std", "decimal", "use_serde"] }
- default = std
-
The
std
feature is set by default wheneverdimensional_quantity
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of num-traits, optional rust_decimal, and optional serde
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - decimal
-
Enables rust_decimal
Affects
extended::decimal
… - use_serde
-
Enables serde, serde of optional rust_decimal