Cargo Features
[dependencies]
num = { version = "0.4.1", default-features = false, features = ["std", "alloc", "libm", "rand", "serde"] }
- default = std
-
The
std
feature is set by default whenevernum
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std and num-bigint-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.