Cargo Features

[dependencies]
common_traits = { version = "0.11.0", default-features = false, features = ["std", "alloc", "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_float::AtomicFloat.fetch_div_euclid, atomic_float::AtomicFloat.fetch_rem_euclid, atomic_float::AtomicFloat.fetch_floor, atomic_float::AtomicFloat.fetch_ceil, atomic_float::AtomicFloat.fetch_round, atomic_float::AtomicFloat.fetch_trunc, atomic_float::AtomicFloat.fetch_fract, atomic_float::AtomicFloat.fetch_abs, atomic_float::AtomicFloat.fetch_signum, atomic_float::AtomicFloat.fetch_copysign, atomic_float::AtomicFloat.fetch_powi, atomic_float::AtomicFloat.fetch_powf, atomic_float::AtomicFloat.fetch_sqrt, atomic_float::AtomicFloat.fetch_exp, atomic_float::AtomicFloat.fetch_ln, atomic_number::AtomicFiniteRangeNumber.fetch_saturating_pow, float::Float.div_euclid, float::Float.rem_euclid, float::Float.floor, float::Float.ceil

alloc

Enables alloc of half

half alloc? std

Enables half

Affects atomic_float::AtomicF16, atomic_float::AtomicBF16

simd