Cargo Features
[dependencies]
half-2 = { version = "2.4.1", default-features = false, features = ["std", "use-intrinsics", "alloc", "rand_distr", "arbitrary", "bytemuck", "serde", "num-traits", "zerocopy", "rkyv"] }
- default = std
-
The
std
feature is set by default wheneverhalf-2
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Affects
slice::HalfFloatSliceExt.to_f32_vec
… - use-intrinsics
-
Deprecated
- alloc std
-
Affects
half-2::vec
,slice::HalfFloatSliceExt.to_f64_vec
,slice::HalfFloatSliceExt.to_f32_vec
… - rand_distr
-
Enables rand and rand_distr
- arbitrary
-
Enables arbitrary
Features from optional dependencies
- bytemuck implicit feature
-
Enables bytemuck
bytemuck:
A crate for mucking around with piles of bytes
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
- num-traits implicit feature
-
Enables num-traits
num-traits:
Numeric traits for generic mathematics
- zerocopy implicit feature
-
Enables zerocopy ^0.6.0
zerocopy:
Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.
- rkyv implicit feature
-
Enables rkyv ^0.7
rkyv:
Zero-copy deserialization framework for Rust