Cargo Features

common_traits = { version = "0.10.2", default-features = false, features = ["std", "alloc", "atomic_from_mut", "half", "simd"] }
default = std

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

std default

Enables std of anyhow and half

Affects atomic_number::AtomicFiniteRangeNumber.fetch_saturating_pow, float::Float.div_euclid, float::Float.rem_euclid, float::Float.floor, float::Float.ceil, float::Float.round, float::Float.trunc, float::Float.fract, float::Float.abs, float::Float.signum, float::Float.copysign, float::Float.powi, float::Float.powf, float::Float.sqrt, float::Float.exp, float::Float.ln


Enables alloc of half

half alloc? std

Enables half

Affects atomic_float::AtomicF16, atomic_float::AtomicBF16