64 lines
1.9 KiB
TOML
64 lines
1.9 KiB
TOML
[package]
|
|
name = "half"
|
|
# Remember to keep in sync with html_root_url crate attribute
|
|
version = "2.7.1"
|
|
authors = ["Kathryn Long <squeeself@gmail.com>"]
|
|
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types."
|
|
repository = "https://github.com/VoidStarKat/half-rs"
|
|
readme = "README.md"
|
|
keywords = ["f16", "bfloat16", "no_std"]
|
|
license = "MIT OR Apache-2.0"
|
|
categories = ["no-std", "data-structures", "encoding"]
|
|
edition = "2021"
|
|
rust-version = "1.81"
|
|
exclude = [".git*", ".editorconfig", ".circleci"]
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["alloc"]
|
|
use-intrinsics = [] # Deprecated
|
|
alloc = []
|
|
rand_distr = ["dep:rand", "dep:rand_distr"]
|
|
zerocopy = [] # Deprecated
|
|
nightly = []
|
|
|
|
[dependencies]
|
|
cfg-if = "1.0.0"
|
|
bytemuck = { version = "1.4.1", default-features = false, features = [
|
|
"derive",
|
|
], optional = true }
|
|
serde = { version = "1.0", default-features = false, features = [
|
|
"derive",
|
|
], optional = true }
|
|
num-traits = { version = "0.2.16", default-features = false, features = [
|
|
"libm",
|
|
], optional = true }
|
|
zerocopy = { version = "0.8.26", default-features = false, features = [
|
|
"derive",
|
|
"simd",
|
|
] }
|
|
rand = { version = "0.9.0", default-features = false, features = [
|
|
"thread_rng",
|
|
], optional = true }
|
|
rand_distr = { version = "0.5.0", default-features = false, optional = true }
|
|
rkyv = { version = "0.8.0", optional = true }
|
|
arbitrary = { version = "1.4.1", features = ["derive"], optional = true }
|
|
|
|
[target.'cfg(target_arch = "spirv")'.dependencies]
|
|
crunchy = "0.2.2"
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.5"
|
|
quickcheck = "1.0"
|
|
quickcheck_macros = "1.0"
|
|
rand = "0.9.0"
|
|
crunchy = "0.2.2"
|
|
|
|
[[bench]]
|
|
name = "convert"
|
|
harness = false
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
all-features = true
|