Cargo Features

[dependencies]
average = { version = "0.16.0", default-features = false, features = ["std", "serde", "nightly", "libm", "rayon", "rayon-core"] }
default = libm

The libm feature is set by default whenever average is added without default-features = false somewhere in the dependency tree.

std

Enables std of easy-cast and num-traits

easy-cast:

Without std, float conversions are disabled (unless libm is used)

serde = serde-big-array, serde_derive

Enables serde

nightly

Affects average::histogram_const

libm default

Enables libm of easy-cast and num-traits

easy-cast:

libm may be used instead of std to provide float conversions

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.

easy-cast libm std?
serde_derive serde?
serde-big-array serde?
rayon implicit feature

Enables rayon

MSRV 1.63

rayon-core implicit feature

Enables rayon-core

MSRV 1.63