[go: up one dir, main page]

half 2.7.1

Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types.
Documentation
[[bench]]
harness = false
name = "convert"
path = "benches/convert.rs"

[dependencies.arbitrary]
features = ["derive"]
optional = true
version = "1.4.1"

[dependencies.bytemuck]
default-features = false
features = ["derive"]
optional = true
version = "1.4.1"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.num-traits]
default-features = false
features = ["libm"]
optional = true
version = "0.2.16"

[dependencies.rand]
default-features = false
features = ["thread_rng"]
optional = true
version = "0.9.0"

[dependencies.rand_distr]
default-features = false
optional = true
version = "0.5.0"

[dependencies.rkyv]
optional = true
version = "0.8.0"

[dependencies.serde]
default-features = false
features = ["derive"]
optional = true
version = "1.0"

[dependencies.zerocopy]
default-features = false
features = ["derive", "simd"]
version = "0.8.26"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.crunchy]
version = "0.2.2"

[dev-dependencies.quickcheck]
version = "1.0"

[dev-dependencies.quickcheck_macros]
version = "1.0"

[dev-dependencies.rand]
version = "0.9.0"

[features]
alloc = []
default = ["std"]
nightly = []
rand_distr = ["dep:rand", "dep:rand_distr"]
std = ["alloc"]
use-intrinsics = []
zerocopy = []

[lib]
name = "half"
path = "src/lib.rs"

[package]
authors = ["Kathryn Long <squeeself@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["no-std", "data-structures", "encoding"]
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types."
edition = "2021"
exclude = [".git*", ".editorconfig", ".circleci"]
keywords = ["f16", "bfloat16", "no_std"]
license = "MIT OR Apache-2.0"
name = "half"
readme = "README.md"
repository = "https://github.com/VoidStarKat/half-rs"
rust-version = "1.81"
version = "2.7.1"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[target.'cfg(target_arch = "spirv")'.dependencies.crunchy]
version = "0.2.2"