Cargo Features

num-traits = { version = "0.2.16", default-features = false, features = ["std", "i128", "libm"] }
default = std

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

std default

Affects float::Float


vestigial features, now always in effect

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

libm implicit feature

Affects float::Float