Cargo Features

[dependencies]
uom = { version = "0.36.0", default-features = false, features = ["std", "autoconvert", "u128", "i128", "biguint", "rational64", "bigrational", "complex64", "f64", "si", "serde", "try-from", "use_serde", "rational-support", "bigint-support", "complex-support"] }
default = autoconvert, f32, f64, si, std

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

std default

Enables std of num-traits

autoconvert default

Affects si::marker.impl_from

usize u8 u16 u32 u64 u128 = rational-support
isize i8 i16 i32 i64 i128 = rational-support
bigint biguint = bigint-support
rational rational32 rational64 = rational-support
bigrational = bigint-support
complex32 complex64 = complex-support
f32 f64 default
si default

Affects uom::si

serde use_serde?

Enables serde, serde of optional num-bigint, optional num-complex, and optional num-rational

try-from

The try-from feature is deprecated and will be removed in a future release of uom. Functionality previously exposed by the feature is now enabled by default.

use_serde = serde

Deprecated alias for the serde feature. Will be removed in a future release of uom (v0.37.0+)

rational-support i128? i16? i32? i64? i8? isize? rational? rational32? rational64? u128? u16? u32? u64? u8? usize? = num-rational

Internal features to include appropriate num-* crates.

Affects uom::num.Rational, uom::num.rational

bigint-support bigint? bigrational? biguint? = num-bigint

Enables num-bigint-std of num-rational

Affects uom::num.rational

complex-support complex32? complex64? = num-complex

Affects uom::num.complex

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.

num-rational bigint-support? rational-support?
num-bigint bigint-support?
num-complex complex-support?