Cargo Features

[dependencies]
average = { version = "0.15.1", default-features = false, features = ["std", "serde1", "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)

serde1 = serde, serde-big-array, serde_derive
nightly

Affects average::histogram_const

libm default

Enables libm of easy-cast and num-traits

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 serde1?
serde-big-array serde1?
rayon implicit feature

Enables rayon =1.7

MSRV 1.61

rayon-core implicit feature

Enables rayon-core =1.11

MSRV 1.61

serde serde1?