Cargo Features

[dependencies]
num = { version = "0.4.2", default-features = false, features = ["std", "alloc", "libm", "rand", "serde"] }
default = std

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

std default

Enables num-bigint-std and std of num-rational, std of num-traits, std of num-bigint, num-complex, num-integer, and num-iter

Affects num::bigint

alloc = num-bigint

Enables num-bigint of num-rational

Affects num::bigint

libm

Enables libm of num-complex and num-traits

rand

Enables rand of num-bigint and num-complex

serde

Enables serde of num-bigint, num-complex, and num-rational

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.

num-bigint alloc? rand? serde? std