Cargo Features

[dependencies]
decorum = { version = "0.3.1", default-features = false, features = ["std", "serialize-serde"] }
default = approx, serialize-serde, std

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

std default

Enables std of approx ^0.3.0 and num-traits

Affects decorum::Real.mul_add, decorum::Real.powi, decorum::Real.powf, decorum::Real.sqrt, decorum::Real.cbrt, decorum::Real.exp, decorum::Real.exp2, decorum::Real.exp_m1, decorum::Real.log, decorum::Real.ln, decorum::Real.log2, decorum::Real.log10, decorum::Real.ln_1p, decorum::Real.hypot, decorum::Real.sin, decorum::Real.cos

serialize-serde default = serde, serde_derive

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.

serde serialize-serde
serde_derive serialize-serde
approx default std

Enables approx ^0.3.0