Cargo Features

[dependencies]
optimath = { version = "0.3.1", default-features = false, features = ["alloc", "serde", "rand"] }
default = rand, serde

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

alloc

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 default
rand default

Enables rand ^0.7