Cargo Features
[dependencies]
decorum = { version = "0.4.0", default-features = false, features = ["std", "serde", "unstable"] }
- default = approx, serde, std
-
These default features are set whenever
decorum
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of approx, num-traits, serde, and thiserror
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
decorum::BaseEncoding.signum
,real::UnaryRealFunction.abs
,real::UnaryRealFunction.floor
,real::UnaryRealFunction.ceil
,real::UnaryRealFunction.round
,real::UnaryRealFunction.trunc
,real::UnaryRealFunction.fract
,real::UnaryRealFunction.powi
,real::UnaryRealFunction.sqrt
,real::UnaryRealFunction.cbrt
,real::UnaryRealFunction.exp
,real::UnaryRealFunction.exp_m1
,real::UnaryRealFunction.ln
,real::UnaryRealFunction.log10
,real::UnaryRealFunction.ln_1p
… - serde default std
-
Enables serde and serde_derive
- unstable
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.